Skip to content

Enforcer should exit with non-zero code on sync issues #248

@torkelrogstad

Description

@torkelrogstad
2025-08-15T04:54:27.763812Z DEBUG initial_sync:sync_to_tip:sync_blocks:connect_block: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:742: updated current chain tip: 640
2025-08-15T04:54:27.767461Z  INFO initial_sync:sync_to_tip:sync_blocks: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:1081: Synced 16 blocks in 64.009125ms
2025-08-15T04:54:27.767488Z DEBUG initial_sync:sync_to_tip: bip300301_enforcer_lib::wallet::cusf_block_producer: lib/wallet/cusf_block_producer.rs:63: Synced validator tip_hash=0000015b7bad86cd086d06c3016a88f45492eefe4f1c1e05f7cfbbd4e1b2f5b6
2025-08-15T04:54:27.767654Z DEBUG initial_sync: cusf_enforcer_mempool::cusf_enforcer: /Users/runner/.cargo/git/checkouts/cusf-enforcer-mempool-d6f72465f9f52718/ce4d748/lib/cusf_enforcer.rs:164: enforcer synced to tip! block_hash=0000015b7bad86cd086d06c3016a88f45492eefe4f1c1e05f7cfbbd4e1b2f5b6 block_height=336
2025-08-15T04:54:27.781611Z DEBUG connect_block:put_headers: bip300301_enforcer_lib::validator::dbs::block_hashes: lib/validator/dbs/block_hashes.rs:218: Stored 1 block header(s) in 10.458µs block_hash=000002195e9a1563b5cd1b89d04997271349c0e34aaa4a982c5969fca9cd4135
2025-08-15T04:54:27.781676Z DEBUG connect_block:connect_block: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:742: updated current chain tip: 641 block_hash=000002195e9a1563b5cd1b89d04997271349c0e34aaa4a982c5969fca9cd4135
2025-08-15T04:54:27.781697Z  INFO connect_block: bip300301_enforcer_lib::validator::cusf_enforcer: lib/validator/cusf_enforcer.rs:285: accepted block block_hash=000002195e9a1563b5cd1b89d04997271349c0e34aaa4a982c5969fca9cd4135
2025-08-15T04:54:27.788398Z  INFO connect_block:handle_connect_block: bip300301_enforcer_lib::wallet::sync: lib/wallet/sync.rs:88: applying block to BDK wallet block_hash=000002195e9a1563b5cd1b89d04997271349c0e34aaa4a982c5969fca9cd4135 block_height=641 block_hash=000002195e9a1563b5cd1b89d04997271349c0e34aaa4a982c5969fca9cd4135
2025-08-15T04:54:27.788594Z  WARN connect_block: bip300301_enforcer_lib::wallet::cusf_block_producer: lib/wallet/cusf_block_producer.rs:179: unable to connect block to bdk_chain, trying recommended include height 1 block_hash=000002195e9a1563b5cd1b89d04997271349c0e34aaa4a982c5969fca9cd4135
2025-08-15T04:54:27.789686Z DEBUG connect_block: bip300301_enforcer_lib::wallet: lib/wallet/mod.rs:2052: connecting missing block 0000003691d2c598b4902d8d74912ab81924af62d13c3a4b90e8bace7fb8f525 at height 1 block_hash=000002195e9a1563b5cd1b89d04997271349c0e34aaa4a982c5969fca9cd4135
2025-08-15T04:54:27.789702Z  INFO connect_block:handle_connect_block: bip300301_enforcer_lib::wallet::sync: lib/wallet/sync.rs:88: applying block to BDK wallet block_hash=0000003691d2c598b4902d8d74912ab81924af62d13c3a4b90e8bace7fb8f525 block_height=1 block_hash=000002195e9a1563b5cd1b89d04997271349c0e34aaa4a982c5969fca9cd4135
2025-08-15T04:54:27.790264Z  INFO bip300301_enforcer: app/main.rs:1235: Task completed, exiting with zero exit code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions