diff options
| author | Jeff Garzik <[email protected]> | 2012-05-14 12:21:03 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-05-19 20:40:43 -0400 |
| commit | b52a27053850590e0ac8f1431a9aad50b7beffee (patch) | |
| tree | 4fe681735ccbcf248f5bbd7ea049884fad25d04e /src/main.cpp | |
| parent | Merge pull request #1360 from jgarzik/datasync (diff) | |
| download | discoin-b52a27053850590e0ac8f1431a9aad50b7beffee.tar.xz discoin-b52a27053850590e0ac8f1431a9aad50b7beffee.zip | |
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.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 8ff6d6fec..f516ad65b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1438,7 +1438,6 @@ bool static Reorganize(CTxDB& txdb, CBlockIndex* pindexNew) if (!block.ConnectBlock(txdb, pindex)) { // Invalid block - txdb.TxnAbort(); return error("Reorganize() : ConnectBlock %s failed", pindex->GetBlockHash().ToString().substr(0,20).c_str()); } |