No description provided.
Document CWalletTx::mapValue entries and remove erase of nonexistent "version" entry. #9333
pull ryanofsky wants to merge 3 commits into bitcoin:master from ryanofsky:pr/comment-mapvalue changing 1 files +25 −1-
ryanofsky commented at 4:42 PM on December 12, 2016: member
-
[trivial] Add comment documenting CWalletTx::mapValue 654e0443fb
-
MarcoFalke commented at 4:45 PM on December 12, 2016: member
Concept ACK, guess this could go to doxygen as well: https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#doxygen-comments
On Mon, Dec 12, 2016 at 5:42 PM, Russell Yanofsky notifications@github.com wrote:
You can view, comment on, or merge this pull request online at:
#9333 Commit Summary
- [trivial] Add comment documenting CWalletTx::mapValue
File Changes
- M src/wallet/wallet.h https://github.com/bitcoin/bitcoin/pull/9333/files#diff-0 (20)
Patch Links:
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bitcoin/bitcoin/pull/9333, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGmvwyHw-ubxSXuULI1M21IhefCtm8Rks5rHXl8gaJpZM4LKwdn .
- ryanofsky force-pushed on Dec 12, 2016
- ryanofsky force-pushed on Dec 12, 2016
-
ryanofsky commented at 6:14 PM on December 12, 2016: member
Thanks, switched to doxygen comment.
-
sipa commented at 6:49 PM on December 12, 2016: member
utACK
- fanquake added the label Docs and Output on Dec 13, 2016
- fanquake added the label Wallet on Dec 13, 2016
-
fanquake commented at 3:33 AM on December 13, 2016: member
utACK
- jonasschnelli approved
-
jonasschnelli commented at 7:23 AM on December 13, 2016: contributor
Thanks for doing that! ACK 28acf493f3c7cd461635a12e99fc3782dfe082a1
-
in src/wallet/wallet.h:None in 28acf493f3 outdated
255 | + * serialized in the wallet database: 256 | + * 257 | + * "comment", "to" - comment strings provided to sendtoaddress, 258 | + * sendfrom, sendmany wallet RPCs 259 | + * "from", "message" - obsolete fields that could be set in UI prior to 260 | + * 2011 (removed 4d9b223)
paveljanik commented at 8:39 AM on December 13, 2016:4d9b223 is the commit hash? github's UI can't find it. If it is commit hash, please add by/in before the ID.
paveljanik commented at 8:41 AM on December 13, 2016:Hmm, search can't find it, but it is hyperlinked to https://github.com/bitcoin/bitcoin/commit/4d9b223ac2b596d93ef772fea27b75d1b959b9ae 8). Interesting. Looks like bug in github's search? ;-)
ryanofsky commented at 12:21 PM on December 13, 2016:Yeah not sure about the github interface.
git log 4d9b223does work though.in src/wallet/wallet.h:None in 28acf493f3 outdated
258 | + * sendfrom, sendmany wallet RPCs 259 | + * "from", "message" - obsolete fields that could be set in UI prior to 260 | + * 2011 (removed 4d9b223) 261 | + * 262 | + * The following keys are serialized in the wallet database, but shouldn't 263 | + * be read or written through the map (they will be temporarily be added and
paveljanik commented at 8:39 AM on December 13, 2016:be... be...
ryanofsky commented at 12:21 PM on December 13, 2016:Thanks, fixed.
in src/wallet/wallet.h:None in 28acf493f3 outdated
262 | + * The following keys are serialized in the wallet database, but shouldn't 263 | + * be read or written through the map (they will be temporarily be added and 264 | + * removed from the map during serialization): 265 | + * 266 | + * "fromaccount" - serialized strFromAccount value 267 | + * "version" - serialized nTimeSmart value
paveljanik commented at 8:40 AM on December 13, 2016:version.... nTimeSmart?
ryanofsky commented at 12:21 PM on December 13, 2016:Oops, fixed.
in src/wallet/wallet.h:None in 28acf493f3 outdated
266 | + * "fromaccount" - serialized strFromAccount value 267 | + * "version" - serialized nTimeSmart value 268 | + * "n" - serialized nOrderPos value 269 | + * "timesmart" - serialized nTimeSmart value 270 | + * "spent" - serialized vfSpent value that existed prior to 271 | + * 2014 (removed 93a18a3)
paveljanik commented at 8:40 AM on December 13, 2016:removed by/in
ryanofsky commented at 12:21 PM on December 13, 2016:Thanks, added.
ryanofsky force-pushed on Dec 13, 2016paveljanik commented at 2:07 PM on December 13, 2016: contributorACK 654e044
a1fe9446e9Remove reference to nonexistent "version" wallet transaction mapvalue field
This change removes a mapValue.erase("version") statement which deletes a mapValue entry that never existed. The statement was mistakenly added in commit 865c3a23832e36d50cb873d38c976032b027b5d3 in 2010 and is harmless but confusing.in src/wallet/wallet.h:None in 654e0443fb outdated
267 | + * "n" - serialized nOrderPos value 268 | + * "timesmart" - serialized nTimeSmart value 269 | + * "spent" - serialized vfSpent value that existed prior to 270 | + * 2014 (removed in commit 93a18a3) 271 | + * 272 | + * A mapValue.erase("version") statement also appears in the code,
laanwj commented at 9:11 AM on December 14, 2016:utACK - though would prefer to just remove this unnecessary code instead of bother to document it here
ryanofsky commented at 10:51 AM on December 14, 2016:Ok, added another commit to this PR which removes the mapValue.erase("version") statement and this part of the comment.
ryanofsky renamed this:[trivial] Add comment documenting CWalletTx::mapValue
Document CWalletTx::mapValue entries and remove erase of nonexistent "version" entry.
on Dec 14, 2016MarcoFalke added the label Refactoring on Dec 14, 2016MarcoFalke removed the label Docs and Output on Dec 14, 2016[trivial] Add comment documenting bumpfee mapValues 87ed396159laanwj merged this on Mar 6, 2017laanwj closed this on Mar 6, 2017laanwj referenced this in commit fa625b078b on Mar 6, 2017PastaPastaPasta referenced this in commit 150357022c on Dec 30, 2018PastaPastaPasta referenced this in commit add11fbf56 on Dec 31, 2018PastaPastaPasta referenced this in commit 427c28ee12 on Dec 31, 2018PastaPastaPasta referenced this in commit cb36eb4747 on Dec 31, 2018PastaPastaPasta referenced this in commit abf8712481 on Jan 2, 2019PastaPastaPasta referenced this in commit b88cec662a on Jan 2, 2019PastaPastaPasta referenced this in commit 35ab56b8c3 on Jan 3, 2019PastaPastaPasta referenced this in commit 1e4539fdbc on Jan 21, 2019PastaPastaPasta referenced this in commit a862c140bc on Jan 25, 2019PastaPastaPasta referenced this in commit 1a4ff7165e on Jan 29, 2019PastaPastaPasta referenced this in commit 0bb6637d81 on Feb 1, 2019PastaPastaPasta referenced this in commit 127dd6ab97 on Feb 1, 2019PastaPastaPasta referenced this in commit ca21c8b1f7 on Feb 1, 2019PastaPastaPasta referenced this in commit 501227deef on Feb 1, 2019MarcoFalke 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: 2026-04-21 15:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me