Reorganize(): remove spurious TxnAbort()
If Reorganize() fails, then its caller, CBlock::SetBestChain(), will call TxnAbort(). Redundant TxnAbort() calls are harmless. The second will return an error return value, with no other side effects. TxnAbort() return values are generally never checked. The impact is nil.
This commit is contained in:
parent
cde87ee75c
commit
b52a270538
1 changed files with 0 additions and 1 deletions
|
@ -1438,7 +1438,6 @@ bool static Reorganize(CTxDB& txdb, CBlockIndex* pindexNew)
|
||||||
if (!block.ConnectBlock(txdb, pindex))
|
if (!block.ConnectBlock(txdb, pindex))
|
||||||
{
|
{
|
||||||
// Invalid block
|
// Invalid block
|
||||||
txdb.TxnAbort();
|
|
||||||
return error("Reorganize() : ConnectBlock %s failed", pindex->GetBlockHash().ToString().substr(0,20).c_str());
|
return error("Reorganize() : ConnectBlock %s failed", pindex->GetBlockHash().ToString().substr(0,20).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue