0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-05 10:17:30 -05:00
bitcoin-bitcoin-core/src/script
Pieter Wuille 7be9a9a570
Merge #12683: Fix more constness violations in serialization code
172f5fa738 Support deserializing into temporaries (Pieter Wuille)
2761bca997 Merge READWRITEMANY into READWRITE (Pieter Wuille)

Pull request description:

  This is another fragment of improvements from #10785.

  The current serialization code does not support serializing/deserializing from/to temporaries (like `s >> CFlatData(script)`). As a result, there are many invocations of the `REF` macro which in addition to changing the reference type also changes the constness. This is unnecessary in C++11 as we can use rvalue references now instead.

  The first commit is an extra simplification we can make that removes the duplication of code between `READWRITE` and `READWRITEMANY` (and related functions).

Tree-SHA512: babfa9cb268cc3bc39917e4f0a90e4651c33d85032161e16547a07f3b257b7ca7940e0cbfd69f09439d26fafbb1a6cf6359101043407e2c7aeececf7f20b6eed
2018-03-15 16:57:55 -07:00
..
bitcoinconsensus.cpp Support deserializing into temporaries 2018-03-13 17:04:31 -07:00
bitcoinconsensus.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
interpreter.cpp Merge #11900: [script] simplify CheckMinimalPush checks, add safety assert 2018-03-07 17:18:14 +01:00
interpreter.h Fix a-vs-an typos 2018-02-11 10:48:15 +01:00
ismine.cpp Refactor HaveKeys to early return on false result 2018-01-29 23:45:25 +00:00
ismine.h Fix a-vs-an typos 2018-02-11 10:48:15 +01:00
script.cpp Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
script.h Merge #10498: Use static_cast instead of C-style casts for non-fundamental types 2018-02-07 16:15:28 -05:00
script_error.cpp Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
script_error.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
sigcache.cpp Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
sigcache.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
sign.cpp Calculate and store the number of bytes required to spend an input 2018-03-09 21:15:36 -05:00
sign.h Calculate and store the number of bytes required to spend an input 2018-03-09 21:15:36 -05:00
standard.cpp Merge #11403: SegWit wallet support 2018-01-10 20:55:41 -10:00
standard.h Merge #11403: SegWit wallet support 2018-01-10 20:55:41 -10:00