Skip to content

Commit 27046cb

Browse files
modified blockchain tests and tested
Co-authored-by: SanthoshAnguluri <santhoshanguluri15@gmail.com>
1 parent 5588c85 commit 27046cb

File tree

7 files changed

+1328
-124
lines changed

7 files changed

+1328
-124
lines changed

ci/start-core.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/blockchain/electrum.rs

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ mod test {
328328
use super::*;
329329
use crate::database::MemoryDatabase;
330330
use crate::make_blockchain_tests;
331-
use crate::testutils::blockchain_tests::{TestClient, BlockchainType};
331+
use crate::testutils::blockchain_tests::{BlockchainType, TestClient};
332332
use crate::wallet::{AddressIndex, Wallet};
333333

334334
crate::bdk_blockchain_tests! {
@@ -341,7 +341,29 @@ mod test {
341341
@type BlockchainType::ElectrumBlockchain,
342342
@tests (
343343
test_sync_simple,
344-
test_taproot_key_spend,
344+
test_sync_stop_gap_20,
345+
test_sync_before_and_after_receive,
346+
test_sync_multiple_outputs_same_tx,
347+
test_sync_receive_multi,
348+
test_sync_address_reuse,
349+
test_sync_receive_rbf_replaced,
350+
test_sync_reorg_block,
351+
test_sync_after_send,
352+
test_sync_double_receive,
353+
test_sync_many_sends_to_a_single_address,
354+
test_update_confirmation_time_after_generate,
355+
test_sync_outgoing_from_scratch,
356+
test_sync_long_change_chain,
357+
test_sync_bump_fee_basic,
358+
test_sync_bump_fee_remove_change,
359+
test_sync_bump_fee_add_input_simple,
360+
test_sync_bump_fee_add_input_no_change,
361+
test_add_data,
362+
test_sync_receive_coinbase,
363+
test_send_to_bech32m_addr,
364+
test_tx_chain,
365+
test_double_spend,
366+
test_send_receive_pkh,
345367
test_taproot_script_spend,
346368
test_sign_taproot_core_keyspend_psbt,
347369
test_sign_taproot_core_scriptspend2_psbt,

src/blockchain/esplora/mod.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,29 @@ pub mod test {
171171
@type BlockchainType::EsploraBlockchain,
172172
@tests (
173173
test_sync_simple,
174+
test_sync_stop_gap_20,
175+
test_sync_before_and_after_receive,
176+
test_sync_multiple_outputs_same_tx,
177+
test_sync_receive_multi,
178+
test_sync_address_reuse,
179+
test_sync_receive_rbf_replaced,
180+
test_sync_reorg_block,
181+
test_sync_after_send,
182+
test_sync_double_receive,
183+
test_sync_many_sends_to_a_single_address,
184+
test_update_confirmation_time_after_generate,
185+
test_sync_outgoing_from_scratch,
186+
test_sync_long_change_chain,
187+
test_sync_bump_fee_basic,
188+
test_sync_bump_fee_remove_change,
189+
test_sync_bump_fee_add_input_simple,
190+
test_sync_bump_fee_add_input_no_change,
191+
test_add_data,
192+
test_sync_receive_coinbase,
193+
test_send_to_bech32m_addr,
194+
test_tx_chain,
195+
test_double_spend,
196+
test_send_receive_pkh,
174197
test_taproot_key_spend,
175198
test_taproot_script_spend,
176199
test_sign_taproot_core_keyspend_psbt,

src/blockchain/rpc.rs

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,31 @@ pub mod test {
591591
make_blockchain_tests![
592592
@type BlockchainType::RpcBlockchain,
593593
@tests (
594-
test_sync_simple
594+
test_sync_simple,
595+
test_sync_stop_gap_20,
596+
test_sync_before_and_after_receive,
597+
test_sync_multiple_outputs_same_tx,
598+
test_sync_receive_multi,
599+
test_sync_address_reuse,
600+
test_sync_receive_rbf_replaced,
601+
test_sync_after_send,
602+
test_sync_double_receive,
603+
test_sync_many_sends_to_a_single_address,
604+
test_update_confirmation_time_after_generate,
605+
test_sync_outgoing_from_scratch,
606+
test_sync_long_change_chain,
607+
test_sync_bump_fee_basic,
608+
test_sync_bump_fee_add_input_simple,
609+
test_sync_bump_fee_add_input_no_change,
610+
test_sync_receive_coinbase,
611+
test_send_to_bech32m_addr,
612+
test_double_spend,
613+
test_tx_chain,
614+
test_taproot_key_spend,
615+
test_taproot_script_spend,
616+
test_sign_taproot_core_keyspend_psbt,
617+
test_sign_taproot_core_scriptspend2_psbt,
618+
test_sign_taproot_core_scriptspend3_psbt
595619
)
596620
];
597621

src/database/keyvalue.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ impl BatchDatabase for Tree {
419419
}
420420
}
421421

422-
423422
#[cfg(test)]
424423
mod test {
425424
use lazy_static::lazy_static;

0 commit comments

Comments
 (0)