Improve error message when a block would overfill the Orchard commitment tree.
Co-authored-by: str4d <jack@electriccoin.co>
This commit is contained in:
parent
dcbbf43d8b
commit
ec4e9ae509
|
@ -3240,7 +3240,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
|
||||||
|
|
||||||
if (!orchard_tree.AppendBundle(tx.GetOrchardBundle())) {
|
if (!orchard_tree.AppendBundle(tx.GetOrchardBundle())) {
|
||||||
return state.DoS(100,
|
return state.DoS(100,
|
||||||
error("ConnectBlock(): the Orchard commitment tree is full."),
|
error("ConnectBlock(): block would overfill the Orchard commitment tree."),
|
||||||
REJECT_INVALID, "orchard-commitment-tree-full");
|
REJECT_INVALID, "orchard-commitment-tree-full");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue