Suggested by gmaxwell.
RPC: createrawtransactions gains 'fee' pseudo-address for fee safety #2975
pull jgarzik wants to merge 2 commits into bitcoin:master from jgarzik:crt-fee-safety changing 1 files +45 −0-
jgarzik commented at 5:33 PM on September 4, 2013: contributor
-
in src/rpcrawtransaction.cpp:None in e71d6f4147 outdated
264 | + } 265 | + 266 | + return total; 267 | +} 268 | + 269 | +static int64 txOutputTotal(const CTransaction& tx)
gavinandresen commented at 12:38 AM on September 9, 2013:I needed this for the 'smartfee' work I'm doing; I made it a CTransaction method in core.cpp, though:
/** Amount of bitcoins spent by the transaction. [@return](/bitcoin-bitcoin/contributor/return/) sum of all outputs (note: does not include fees) */ int64 CTransaction::GetValueOut() const { int64 nValueOut = 0; BOOST_FOREACH(const CTxOut& txout, this->vout) { nValueOut += txout.nValue; if (!MoneyRange(txout.nValue) || !MoneyRange(nValueOut)) throw std::runtime_error("GetValueOut() : value out of range"); } return nValueOut; }jgarzik commented at 1:42 AM on September 9, 2013: contributorNote that @gmaxwell was unable to get this PR to work for him, so there is a bug in there somewher. @gavinandresen CTransaction method works
laanwj added the label RPC on May 9, 2014laanwj added the label TX fees on May 9, 20146d47acb8a0RPC: createrawtransactions gains 'fee' pseudo-address for fee safety
Suggested by gmaxwell.
rpcrawtransaction: use int64_t rather than int64 be96bf0a57jgarzik commented at 8:54 PM on May 20, 2014: contributorRebased... though the current IRC consensus seems to lean towards another RPC 'buildrawtransaction' which has fee and coin selection smarts.
BitcoinPullTester commented at 9:34 PM on May 20, 2014: noneAutomatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/be96bf0a577faf928376e62840cd1ea33e5fbd16 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
jgarzik commented at 7:01 PM on June 6, 2014: contributorClosing. A good idea, but buggy, and should be superceded by 'buildrawtransaction' which is smarter about fees and coin selection in general.
jgarzik closed this on Jun 6, 2014jgarzik deleted the branch on Aug 24, 2014Bushstar referenced this in commit e035387783 on Apr 8, 2020Bushstar referenced this in commit 49c37b82ae on Apr 8, 2020DrahtBot locked this on Sep 8, 2021Contributors
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: 2026-04-13 15:16 UTC
More mirrored repositories can be found on mirror.b10c.me