Skip to content

WARNING submitblock returned inconclusive #1

Description

@mcelrath

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

Sometimes submitted blocks are not accepted by bitcoin core, logging "inconclusive". The header seems to be accepted by bitcoin but not connected as a block tip. This message is generated in src/bitcoin-chainstate.cpp and seems to indicate that block.GetHash() does not match the passed in parameter to submitblock_StateCatcher. This is very very odd because at the point it's called, it's called with just submitblock_StateCatcher(block.GetHash()) which is compared directly against block.GetHash().

I've seen this twice, and increased logging verbosity to try to find the error.

Restarting bitcoind caused it to connect this block as a block tip without resubmitting it.

Expected behaviour

.

Steps to reproduce

.

Relevant log output

contrib/cpunet/miner output:

2024-08-22 09:32:11 WARNING submitblock returned inconclusive for height 400 hash                 00000000937214fdfb13ccd45f4e3170db7e441182efcaffc964e68aef70170c
2024-08-22 09:32:11 INFO Mined a block solution at height 400 with hash:                          00000000937214fdfb13ccd45f4e3170db7e441182efcaffc964e68aef70170c
2024-08-22 09:32:11 INFO Mining Block: CBlock(nVersion=536870912                                  hashPrevBlock=000000002845d58dd229549bd64ac99e862e36052133de5da1f9e4afa0c0dcc6                    hashMerkleRoot=93979a6fe58fe2baed50f01e8faa8f3281a6d6072d456cfd9410297f80ea5678 nTime=Thu Aug 22  09:32:11 2024 nBits=1d00ffff nNonce=00000000 vtx=[CTransaction(version=2                          vin=[CTxIn(prevout=COutPoint(hash=0000000000000000000000000000000000000000000000000000000000000000 n=4294967295) scriptSig=029101 nSequence=4294967294)] vout=[CTxOut(nValue=50.00000000            scriptPubKey=0014314b346296a361d3e349edf0d0879be8095a68d5)] wit=CTxWitness() nLockTime=0)])

debug.log output:

2024-08-22T13:32:11Z Saw new header                                                               hash=00000000937214fdfb13ccd45f4e3170db7e441182efcaffc964e68aef70170c height=400

How did you obtain Bitcoin Core

Compiled from source

What version of Bitcoin Core are you using?

Bitcoin Core version v27.99.0-e8b157f687eb-dirty from cpunet branch

Operating system and version

Arch Linux 6.10.5-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC

Machine specifications

8 core AMD Ryzen

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions