bitcoin/src/wallet
Wladimir J. van der Laan 0a8054e7cd
Merge #12731: Support serialization as another type without casting
818dc74 Support serialization as another type without casting (Pieter Wuille)

Pull request description:

  This adds a `READWRITEAS(type, obj)` macro which serializes `obj` as if it were converted to `const type&` when `const`, and to `type&` when non-`const`. No actual cast is involved, so this only works when this conversion can be done automatically.

  This makes it usable in serialization code that uses a single implementation for both serialization and deserializing, which doesn't know the constness of the object involved.

  This is a redo of #12712, using a slightly different interface.

Tree-SHA512: 262f0257284ff99b5ffaec9b997c194e221522ba35c3ac8eaa9bb344449d7ea0a314de254dc77449fa7aaa600f8cd9a24da65aade8c1ec6aa80c6e9a7bba5ca7
2018-04-10 20:54:33 +02:00
..
test Merge #11851: scripted-diff: Rename wallet database classes 2018-04-09 19:29:54 +02:00
coincontrol.h wallet: Change output type globals to members 2018-03-17 16:10:01 -04:00
coinselection.cpp Move current coin selection algorithm to coinselection.{cpp,h} 2018-03-13 12:39:26 -04:00
coinselection.h Fix missing or inconsistent include guards 2018-03-22 16:23:04 +01:00
crypter.cpp Merge #11403: SegWit wallet support 2018-01-10 20:55:41 -10:00
crypter.h tests: Avoid test suite name collision in wallet crypto_tests 2018-04-06 16:29:14 +02:00
db.cpp Merge #11851: scripted-diff: Rename wallet database classes 2018-04-09 19:29:54 +02:00
db.h scripted-diff: Rename wallet database classes 2018-04-07 11:48:27 -05:00
feebumper.cpp feebumper: discard change outputs below discard rate 2018-03-21 15:29:23 -04:00
feebumper.h feebumper: Use PreconditionChecks to determine bump eligibility 2018-01-29 18:31:33 -05:00
fees.cpp Add a GetMinimumFeeRate function which is wrapped by GetMinimumFee 2018-03-13 12:39:26 -04:00
fees.h Add a GetMinimumFeeRate function which is wrapped by GetMinimumFee 2018-03-13 12:39:26 -04:00
init.cpp scripted-diff: Rename wallet database classes 2018-04-07 11:48:27 -05:00
rpcdump.cpp wallet: Make WalletInitInterface and DummyWalletInit private 2018-04-05 21:09:21 +01:00
rpcwallet.cpp Use std::bind instead of boost::bind to re-lock the wallet 2018-04-08 10:44:40 -04:00
rpcwallet.h Split signrawtransaction into wallet and non-wallet 2018-02-17 11:42:00 -05:00
wallet.cpp Merge #11851: scripted-diff: Rename wallet database classes 2018-04-09 19:29:54 +02:00
wallet.h Merge #12731: Support serialization as another type without casting 2018-04-10 20:54:33 +02:00
walletdb.cpp Add m_ prefix to WalletBatch::m_batch 2018-04-07 12:48:27 -04:00
walletdb.h Add m_ prefix to WalletBatch::m_batch 2018-04-07 12:48:27 -04:00
walletutil.cpp Don't allow relative -walletdir paths 2018-01-18 15:09:27 -05:00
walletutil.h Fix missing or inconsistent include guards 2018-03-22 16:23:04 +01:00