Skip to content

Commit ee9a99e

Browse files
committed
Enable stream::in::fast&& chain constructor overrides.
1 parent 4510b76 commit ee9a99e

18 files changed

Lines changed: 46 additions & 46 deletions

include/bitcoin/system/chain/block.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class BC_API block
5656
const transactions_cptr& txs) NOEXCEPT;
5757

5858
block(const data_slice& data, bool witness) NOEXCEPT;
59-
////block(stream::in::fast&& stream, bool witness) NOEXCEPT;
59+
block(stream::in::fast&& stream, bool witness) NOEXCEPT;
6060
block(stream::in::fast& stream, bool witness) NOEXCEPT;
6161
block(std::istream&& stream, bool witness) NOEXCEPT;
6262
block(std::istream& stream, bool witness) NOEXCEPT;

include/bitcoin/system/chain/header.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class BC_API header
6767
uint32_t nonce) NOEXCEPT;
6868

6969
header(const data_slice& data) NOEXCEPT;
70-
////header(stream::in::fast&& stream) NOEXCEPT;
70+
header(stream::in::fast&& stream) NOEXCEPT;
7171
header(stream::in::fast& stream) NOEXCEPT;
7272
header(std::istream&& stream) NOEXCEPT;
7373
header(std::istream& stream) NOEXCEPT;

include/bitcoin/system/chain/input.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class BC_API input
6969
const chain::witness::cptr& witness, uint32_t sequence) NOEXCEPT;
7070

7171
input(const data_slice& data) NOEXCEPT;
72-
////input(stream::in::fast&& stream) NOEXCEPT;
72+
input(stream::in::fast&& stream) NOEXCEPT;
7373
input(stream::in::fast& stream) NOEXCEPT;
7474
input(std::istream&& stream) NOEXCEPT;
7575
input(std::istream& stream) NOEXCEPT;

include/bitcoin/system/chain/operation.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class BC_API operation
8585

8686
/// These deserialize operations (with codes), not from push-data.
8787
operation(const data_slice& op_data) NOEXCEPT;
88-
////operation(stream::in::fast&& stream) NOEXCEPT;
88+
operation(stream::in::fast&& stream) NOEXCEPT;
8989
operation(stream::in::fast& stream) NOEXCEPT;
9090
operation(std::istream&& stream) NOEXCEPT;
9191
operation(std::istream& stream) NOEXCEPT;

include/bitcoin/system/chain/output.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class BC_API output
5151
output(uint64_t value, const chain::script::cptr& script) NOEXCEPT;
5252

5353
output(const data_slice& data) NOEXCEPT;
54-
////output(stream::in::fast&& stream) NOEXCEPT;
54+
output(stream::in::fast&& stream) NOEXCEPT;
5555
output(stream::in::fast& stream) NOEXCEPT;
5656
output(std::istream&& stream) NOEXCEPT;
5757
output(std::istream& stream) NOEXCEPT;

include/bitcoin/system/chain/point.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class BC_API point
5858
point(const hash_digest& hash, uint32_t index) NOEXCEPT;
5959

6060
point(const data_slice& data) NOEXCEPT;
61-
////point(stream::in::fast&& stream) NOEXCEPT;
61+
point(stream::in::fast&& stream) NOEXCEPT;
6262
point(stream::in::fast& stream) NOEXCEPT;
6363
point(std::istream&& stream) NOEXCEPT;
6464
point(std::istream& stream) NOEXCEPT;

include/bitcoin/system/chain/script.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class BC_API script
103103
script(operations&& ops, bool prefail) NOEXCEPT;
104104
script(const operations& ops, bool prefail) NOEXCEPT;
105105
script(const data_slice& data, bool prefix) NOEXCEPT;
106-
////script(stream::in::fast&& stream, bool prefix) NOEXCEPT;
106+
script(stream::in::fast&& stream, bool prefix) NOEXCEPT;
107107
script(stream::in::fast& stream, bool prefix) NOEXCEPT;
108108
script(std::istream&& stream, bool prefix) NOEXCEPT;
109109
script(std::istream& stream, bool prefix) NOEXCEPT;

include/bitcoin/system/chain/transaction.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class BC_API transaction
7171
const outputs_cptr& outputs, uint32_t locktime) NOEXCEPT;
7272

7373
transaction(const data_slice& data, bool witness) NOEXCEPT;
74-
////transaction(stream::in::fast&& stream, bool witness) NOEXCEPT;
74+
transaction(stream::in::fast&& stream, bool witness) NOEXCEPT;
7575
transaction(stream::in::fast& stream, bool witness) NOEXCEPT;
7676
transaction(std::istream&& stream, bool witness) NOEXCEPT;
7777
transaction(std::istream& stream, bool witness) NOEXCEPT;

include/bitcoin/system/chain/witness.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class BC_API witness
5656
witness(const chunk_cptrs& stack) NOEXCEPT;
5757

5858
witness(const data_slice& data, bool prefix) NOEXCEPT;
59-
////witness(stream::in::fast&& stream, bool prefix) NOEXCEPT;
59+
witness(stream::in::fast&& stream, bool prefix) NOEXCEPT;
6060
witness(stream::in::fast& stream, bool prefix) NOEXCEPT;
6161
witness(std::istream&& stream, bool prefix) NOEXCEPT;
6262
witness(std::istream& stream, bool prefix) NOEXCEPT;

src/chain/block.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ block::block(const chain::header::cptr& header,
7373
}
7474

7575
block::block(const data_slice& data, bool witness) NOEXCEPT
76-
: block(stream::in::copy(data), witness)
76+
: block(stream::in::fast(data), witness)
7777
{
7878
}
7979

80-
////block::block(stream::in::fast&& stream, bool witness) NOEXCEPT
81-
//// : block(read::bytes::fast(stream), witness)
82-
////{
83-
////}
80+
block::block(stream::in::fast&& stream, bool witness) NOEXCEPT
81+
: block(read::bytes::fast(stream), witness)
82+
{
83+
}
8484

8585
block::block(stream::in::fast& stream, bool witness) NOEXCEPT
8686
: block(read::bytes::fast(stream), witness)

0 commit comments

Comments
 (0)