diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-08-28 21:48:39 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-08-28 21:49:23 -0400 |
commit | fa309dc30579acebff33380abdfe728c1cf59f92 (patch) | |
tree | 2cfde8412998dbbe1c99f67499c76f09b9dc0f70 | |
parent | aa39ca764578a9017e03796b554955796022eb0d (diff) |
validation: Log FormatStateMessage on ConnectBlock error in ConnectTip
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 3e51221a5e..952d17ea48 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -2448,7 +2448,7 @@ bool CChainState::ConnectTip(CValidationState& state, const CChainParams& chainp if (!rv) { if (state.IsInvalid()) InvalidBlockFound(pindexNew, state); - return error("ConnectTip(): ConnectBlock %s failed", pindexNew->GetBlockHash().ToString()); + return error("%s: ConnectBlock %s failed, %s", __func__, pindexNew->GetBlockHash().ToString(), FormatStateMessage(state)); } nTime3 = GetTimeMicros(); nTimeConnectTotal += nTime3 - nTime2; LogPrint(BCLog::BENCH, " - Connect total: %.2fms [%.2fs (%.2fms/blk)]\n", (nTime3 - nTime2) * MILLI, nTimeConnectTotal * MICRO, nTimeConnectTotal * MILLI / nBlocksTotal); |