aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2018-03-19 15:57:11 -0400
committerRussell Yanofsky <[email protected]>2018-04-05 12:19:35 -0400
commit1e46d8ae897aded3367a2dd63a76991882d170fa (patch)
treeb3738f95b2c05a6e712576a9c6d08a128391fe65 /src/net_processing.cpp
parentMerge #10244: Refactor: separate gui from wallet and node (diff)
downloaddiscoin-1e46d8ae897aded3367a2dd63a76991882d170fa.tar.xz
discoin-1e46d8ae897aded3367a2dd63a76991882d170fa.zip
Get rid of ambiguous OutputType::NONE value
Based on suggestion by Pieter Wuille <[email protected]> at https://github.com/bitcoin/bitcoin/pull/12119#issuecomment-357982763 After #12119, the NONE output type was overloaded to refer to either an output type that couldn't be parsed, or to an automatic change output mode. This change drops the NONE enum and uses a simple bool indicate parse failure, and a new CHANGE_AUTO enum to refer the change output type. This change is almost a pure refactoring except it makes RPCs reject empty string ("") address types instead of treating them like they were unset. This simplifies the parsing code a little bit and could prevent RPC usage mistakes. It's noted in the release notes.
Diffstat (limited to 'src/net_processing.cpp')
0 files changed, 0 insertions, 0 deletions