Small improvements on a couple of debug messages #5017
pull jtimon wants to merge 2 commits into bitcoin:master from jtimon:debug_maaku changing 1 files +4 −2-
jtimon commented at 11:50 pm on September 30, 2014: contributorTaking a little bit of @maaku’s work on Freicoin back to Bitcoin.
-
in src/main.cpp: in 00000a5eed outdated
1360@@ -1361,7 +1361,8 @@ bool CheckInputs(const CTransaction& tx, CValidationState &state, const CCoinsVi 1361 } 1362 1363 if (nValueIn < tx.GetValueOut()) 1364- return state.DoS(100, error("CheckInputs() : %s value in < value out", tx.GetHash().ToString()), 1365+ return state.DoS(100, error("CheckInputs() : %s value in < value out (%s < %s)", 1366+ tx.GetHash().ToString(), FormatMoney(nValueIn), FormatMoney(tx.GetValueOut())),
TheBlueMatt commented at 11:52 pm on September 30, 2014:Can you do “%s value in (%s) < value out (%s)”?laanwj commented at 1:11 pm on October 1, 2014: member0main.cpp: In function ‘bool CheckInputs(const CTransaction&, CValidationState&, const CCoinsViewCache&, bool, unsigned int, std::vector<CScriptCheck>*)’: 1 2main.cpp:1365:86: error: ‘FormatMoney’ was not declared in this scope
When transaction outputs exceed inputs, show the offending amounts so as to aid debugging. 217a5c9238Print input index when signature validation fails, to aid debugging. f74fc9b22djtimon force-pushed on Oct 1, 2014jtimon commented at 6:11 pm on October 1, 2014: contributorFixed @TheBlueMatt ’s nit and compile error.TheBlueMatt commented at 8:53 pm on October 1, 2014: memberutACKsipa commented at 2:06 am on October 2, 2014: memberutACKlaanwj merged this on Oct 2, 2014laanwj closed this on Oct 2, 2014
laanwj referenced this in commit 00eef5d6e9 on Oct 2, 2014MarcoFalke locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 15:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 15:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me