-
Notifications
You must be signed in to change notification settings - Fork 809
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
Unable to sync full node, getting bad-witness-nonce-size on block height 434499 #824
Comments
I think this error comes up when a legacy node sends us a block with no witness data. Score 100 means that peer is banned. So it’s strange that you would get this repeatedly (from multiple peers?) and especially strange on two different nodes. Can you tell how many peers you have? Is there anything else unusual about your configuration? Any other log messages before the invalid block? Set loglevel to ‘spam’ and see if anything else comes up. |
Ok there must be something extra weird happening here. This block is time stamped 10/15/2016, 4:21:32 PM PDT — segwit wasn’t activated yet! The witness check should not be active at this height either. |
Right?! Yea we did notice that this block was from before segwit was enabled, should have mentioned in my initial post. But yes, it looks like this witness check is being triggered incorrectly for some reason. Appears to be 32 peers, and this has been kept up pretty regularly. Anyway, since this cycle has been repeating for nearly 24 hours, it seems that no peer is able to send our nodes a block that they consider valid.
There's nothing else unusual about our configuration as far as I can tell. Here's a log snippet with spam enabled. I didn't catch any additional info there but maybe you'll have better luck.
|
Where are you installing from, and are you using version 1.0.2 from A few notes on the environment and installation:
|
Yes! Your comment nudged me in the right direction to find the issue. It turns out unbeknownst to me that my docker image was being built off of a fork of this code base, which had some unusual modifications in order to work around a long forgotten problem. (Someone else built the docker image some time ago.) The changed lines were After spotting that and building off the proper codebase things started working right away, and my sync was able to progress past that block. Thanks for the help guys! |
Hey all, running into an issue trying to perform a full sync of the chain.
On block height 434499 I see an error and the sync is unable to proceed. Restarting the node seems to have no effect.
Here's the error, which repeats ad nauseam.
[warning] (chain) Tried to connect invalid block: 0000000000000000010821c880d75e6e325705bf19f01f3a5a9399fa5d4f06e6 (434499).
[warning] (net) Error: Verification failure: bad-witness-nonce-size (code=invalid score=100 hash=0000000000000000010821c880d75e6e325705bf19f01f3a5a9399fa5d4f06e6)
I have run into this issue with 2 different bcoin processes now. One is running bcoin:v1.0.0-pre on node v9.11.2, the other is running bcoin:1.0.2 on node v10.16.2. These are running in docker containers inside a Docker Swarm. Both have the same config:
http-host: 0.0.0.0
index-address: true
index-tx: true
log-level: warning
network: main
no-auth: true
prefix: /data
selfish: true
max-outbound: 32
Wondering why this error is coming up, as this appears to be a valid block, and wondering what I can do to resolve the issue and get a full node synced? It seems others are able to complete full node syncs, so I'm also wondering what is so unique about our config that may be causing this issue.
Happy to provide any additional info needed.
The text was updated successfully, but these errors were encountered: