Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: CUSF enforcer task w/o mempool #157

Open
seriouscatsoserious opened this issue Feb 6, 2025 · 4 comments
Open

error: CUSF enforcer task w/o mempool #157

seriouscatsoserious opened this issue Feb 6, 2025 · 4 comments

Comments

@seriouscatsoserious
Copy link
Contributor

seriouscatsoserious commented Feb 6, 2025

[1] 
[1] [enforcer] stderr: Error: 
[1]   × CUSF enforcer task w/o mempool: Wallet synced to other tip
[1]   │ (00000252715f584b91245819584b9b15266ab50fd8a7a4a76a41e6f41a4629de):
[1]   │ expected 000001df63cb97b8032d4f2684a4ca8c6a8dd4536e29e27333d7880b37e1c38f
[1] 
[1] 
[1] Process for enforcer exited with code 1 (signal: null)

Expected behavior:

  1. Start Bitcoin Core, start seeing blocks in UI
  2. Moments later, start Enforcer, start seeing blocks in UI

What I get now:

  1. Start Bitcoin Core, start seeing blocks in UI
  2. Moments later, start Enforcer
    and then it either
  • Shuts down automatically immediately
  • Runs, but doesn't show any blocks, and eventually fails
  • Sometimes shows blocks and runs
@CryptAxe
Copy link
Contributor

CryptAxe commented Feb 6, 2025

I get this similar error during sync:

[1] [enforcer] stdout: 2025-02-05T21:48:26.476190Z ERROR bip300301_enforcer: app/main.rs:553: Received error: CUSF enforcer task w/o mempool: Wallet synced to other tip (0000032f2b50758b150636f210742e46637bed132e5c6315035732459a8996b5): expected 000001b23c08c406a4f4aefa810f9f48d078e82925c87ccb469c14ff30b0dee4
[1] 
[1] [enforcer] stderr: Error: 
[1] 
[1] [enforcer] stderr:   × CUSF enforcer task w/o mempool: Wallet synced to other tip
[1]   │ (0000032f2b50758b150636f210742e46637bed132e5c6315035732459a8996b5):
[1]   │ expected 000001b23c08c406a4f4aefa810f9f48d078e82925c87ccb469c14ff30b0dee4
[1] 
[1] 
[1] Process for enforcer exited with code 1 (signal: null)

@CryptAxe
Copy link
Contributor

CryptAxe commented Feb 6, 2025

Another example:

[1] [enforcer] stdout: 2025-02-05T22:01:42.147939Z DEBUG sync_to_tip: bip300301_enforcer_lib::wallet::sync: lib/wallet/sync.rs:99: wallet sync complete in 557.730706ms
[1] 
[1] [enforcer] stdout: 2025-02-05T22:01:42.148146Z ERROR bip300301_enforcer: app/main.rs:553: Received error: CUSF enforcer task w/o mempool: Wallet synced to other tip (0000021fd1c5d29d03b4ab28eb9754471b57e3610d140965f226041de4123f4b): expected 0000005587d43ed90edc492d503979c6a7649a70578635708247276d56850500
[1] 
[1] [enforcer] stderr: Error: 
[1]   × CUSF enforcer task w/o mempool: Wallet synced to other tip
[1]   │ (0000021fd1c5d29d03b4ab28eb9754471b57e3610d140965f226041de4123f4b):
[1]   │ expected 0000005587d43ed90edc492d503979c6a7649a70578635708247276d56850500
[1] 
[1] 
[1] Process for enforcer exited with code 1 (signal: null)
[1] [bitcoin] stdout: 2025-02-05T22:02:05Z Saw new header hash=000001e72c08326b34b5682a5ab81e81334a73e0a8236814e4152c611a3da812 height=27838
[1] 2025-02-05T22:02:05Z Saw new cmpctblock header hash=000001e72c08326b34b5682a5ab81e81334a73e0a8236814e4152c611a3da812 peer=0
[1] 

@seriouscatsoserious
Copy link
Contributor Author

Hey, still seeing this error as of today

[1] [enforcer] stdout: 2025-02-10T15:23:46.295719Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:846: Syncing block `00000289008b4d90dc7c1c0f7f1aaf447346039bea9f38882cc5951eeb5a0940` -> `00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad`
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.296113Z DEBUG sync_to_tip:connect_block: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:738: updated current chain tip: 685 block_hash=00000289008b4d90dc7c1c0f7f1aaf447346039bea9f38882cc5951eeb5a0940
[1] 2025-02-10T15:23:46.296127Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:859: connected block at height 685: 00000289008b4d90dc7c1c0f7f1aaf447346039bea9f38882cc5951eeb5a0940
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.296740Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:846: Syncing block `000002c40dda60f2fbf16f52dc6f0a24b62071cbf3076e31627436e745c40e26` -> `00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad`
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.297281Z DEBUG sync_to_tip:connect_block: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:738: updated current chain tip: 686 block_hash=000002c40dda60f2fbf16f52dc6f0a24b62071cbf3076e31627436e745c40e26
[1] 2025-02-10T15:23:46.297305Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:859: connected block at height 686: 000002c40dda60f2fbf16f52dc6f0a24b62071cbf3076e31627436e745c40e26
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.298236Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:846: Syncing block `000001f0706e7cf886e9a095b9387c8c8dd0d5861cde0c451187be9b1da97c5b` -> `00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad`
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.300573Z DEBUG sync_to_tip:connect_block: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:738: updated current chain tip: 687 block_hash=000001f0706e7cf886e9a095b9387c8c8dd0d5861cde0c451187be9b1da97c5b
[1] 2025-02-10T15:23:46.300609Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:859: connected block at height 687: 000001f0706e7cf886e9a095b9387c8c8dd0d5861cde0c451187be9b1da97c5b
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.301651Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:846: Syncing block `000000d839320221d5db43e081df447c502b652746c987fae11cc9d64cfc08c5` -> `00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad`
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.303562Z DEBUG sync_to_tip:connect_block: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:738: updated current chain tip: 688 block_hash=000000d839320221d5db43e081df447c502b652746c987fae11cc9d64cfc08c5
[1] 2025-02-10T15:23:46.303622Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:859: connected block at height 688: 000000d839320221d5db43e081df447c502b652746c987fae11cc9d64cfc08c5
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.304664Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:846: Syncing block `000002d321acee7fbf8cd1fb6757bf6493a3c4e3daa5dde96057798c07a4341a` -> `00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad`
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.306068Z DEBUG sync_to_tip:connect_block: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:738: updated current chain tip: 689 block_hash=000002d321acee7fbf8cd1fb6757bf6493a3c4e3daa5dde96057798c07a4341a
[1] 2025-02-10T15:23:46.306094Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:859: connected block at height 689: 000002d321acee7fbf8cd1fb6757bf6493a3c4e3daa5dde96057798c07a4341a
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.306768Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:846: Syncing block `00000030d6a62b6c547ef2934897771f3e6a94cdeb11a5a9a6894f2c8c187c4d` -> `00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad`
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.307203Z DEBUG sync_to_tip:connect_block: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:738: updated current chain tip: 690 block_hash=00000030d6a62b6c547ef2934897771f3e6a94cdeb11a5a9a6894f2c8c187c4d
[1] 2025-02-10T15:23:46.307224Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:859: connected block at height 690: 00000030d6a62b6c547ef2934897771f3e6a94cdeb11a5a9a6894f2c8c187c4d
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.307856Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:846: Syncing block `000001a8b700618a6a52a5ad5ef47ec4af0544c5a91a7cc3b0b6363c1141c7e4` -> `00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad`
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.308348Z DEBUG sync_to_tip:connect_block: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:738: updated current chain tip: 691 block_hash=000001a8b700618a6a52a5ad5ef47ec4af0544c5a91a7cc3b0b6363c1141c7e4
[1] 2025-02-10T15:23:46.308367Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:859: connected block at height 691: 000001a8b700618a6a52a5ad5ef47ec4af0544c5a91a7cc3b0b6363c1141c7e4
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.309009Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:846: Syncing block `000002daba3626ce2cc2fea40877c813f8712669ddb8371edca45d90a525a4fa` -> `00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad`
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.309384Z DEBUG sync_to_tip:connect_block: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:738: updated current chain tip: 692 block_hash=000002daba3626ce2cc2fea40877c813f8712669ddb8371edca45d90a525a4fa
[1] 2025-02-10T15:23:46.309402Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:859: connected block at height 692: 000002daba3626ce2cc2fea40877c813f8712669ddb8371edca45d90a525a4fa
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.310077Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:846: Syncing block `0000016832b2924dd743389277f622a9501e1a554b28a6cec591b75375c5be67` -> `00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad`
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.310450Z DEBUG sync_to_tip:connect_block: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:738: updated current chain tip: 693 block_hash=0000016832b2924dd743389277f622a9501e1a554b28a6cec591b75375c5be67
[1] 2025-02-10T15:23:46.310466Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:859: connected block at height 693: 0000016832b2924dd743389277f622a9501e1a554b28a6cec591b75375c5be67
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.311116Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:846: Syncing block `00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad` -> `00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad`
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.311528Z DEBUG sync_to_tip:connect_block: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:738: updated current chain tip: 694 block_hash=00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad
[1] 2025-02-10T15:23:46.311543Z DEBUG sync_to_tip: bip300301_enforcer_lib::validator::task: lib/validator/task/mod.rs:859: connected block at height 694: 00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:46.312113Z DEBUG sync_to_tip: bip300301_enforcer_lib::wallet::cusf_block_producer: lib/wallet/cusf_block_producer.rs:46: Synced validator, syncing wallet.. tip_hash=00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:47.005025Z DEBUG sync_to_tip: bip300301_enforcer_lib::wallet::sync: lib/wallet/sync.rs:99: wallet sync complete in 692.891479ms
[1] 
[1] [enforcer] stdout: 2025-02-10T15:23:47.005460Z ERROR bip300301_enforcer: app/main.rs:553: Received error: CUSF enforcer task w/o mempool: Wallet synced to other tip (000003494881f258bd9996b29151c64ecc778c7dda18f41aa7b87e257cf4518d): expected 00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad
[1] 
[1] [enforcer] stderr: Error: 
[1]   × CUSF enforcer task w/o mempool: Wallet synced to other tip
[1]   │ (000003494881f258bd9996b29151c64ecc778c7dda18f41aa7b87e257cf4518d):
[1]   │ expected 00000353e4b3b1575309fc3aff35d126703d9cd33180c9506d5f0b21843c94ad
[1] 
[1] 
[1] Process for enforcer exited with code 1 (signal: null)

Has a ton of the stdout messages, stops after some time

@seriouscatsoserious
Copy link
Contributor Author

npm_start_logs.txt

Hey guys just wanted to note that the enforcer is taking a somewhat long time to get to the point where it starts finding blocks, but without much feedback besides errors. Not sure if there's a way around this but sharing logs for prosperity's sake.

Note that on first start up it seems the retries happen every second or so, whereas on subsequent start ups it's every 3 seconds or so, unsure if this is intentional or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants