Skip to content

Commit ee9a99e

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

18 files changed

+46
-46
lines changed

include/bitcoin/system/chain/block.hpp

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+5-5
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)

src/chain/header.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ header::header(const data_slice& data) NOEXCEPT
6666
{
6767
}
6868

69-
////header::header(stream::in::fast&& stream) NOEXCEPT
70-
//// : header(read::bytes::fast(stream))
71-
////{
72-
////}
69+
header::header(stream::in::fast&& stream) NOEXCEPT
70+
: header(read::bytes::fast(stream))
71+
{
72+
}
7373

7474
header::header(stream::in::fast& stream) NOEXCEPT
7575
: header(read::bytes::fast(stream))

src/chain/input.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ input::input(const data_slice& data) NOEXCEPT
149149
{
150150
}
151151

152-
////input::input(stream::in::fast&& stream) NOEXCEPT
153-
//// : input(read::bytes::fast(stream))
154-
////{
155-
////}
152+
input::input(stream::in::fast&& stream) NOEXCEPT
153+
: input(read::bytes::fast(stream))
154+
{
155+
}
156156

157157
input::input(stream::in::fast& stream) NOEXCEPT
158158
: input(read::bytes::fast(stream))

src/chain/operation.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ operation::operation(const data_slice& op_data) NOEXCEPT
130130
{
131131
}
132132

133-
////operation::operation(stream::in::fast&& stream) NOEXCEPT
134-
//// : operation(read::bytes::fast(stream))
135-
////{
136-
////}
133+
operation::operation(stream::in::fast&& stream) NOEXCEPT
134+
: operation(read::bytes::fast(stream))
135+
{
136+
}
137137

138138
operation::operation(stream::in::fast& stream) NOEXCEPT
139139
: operation(read::bytes::fast(stream))

src/chain/output.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ output::output(const data_slice& data) NOEXCEPT
6565
{
6666
}
6767

68-
////output::output(stream::in::fast&& stream) NOEXCEPT
69-
//// : output(read::bytes::fast(stream))
70-
////{
71-
////}
68+
output::output(stream::in::fast&& stream) NOEXCEPT
69+
: output(read::bytes::fast(stream))
70+
{
71+
}
7272

7373
output::output(stream::in::fast& stream) NOEXCEPT
7474
: output(read::bytes::fast(stream))

src/chain/point.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ point::point(const data_slice& data) NOEXCEPT
5757
{
5858
}
5959

60-
////point::point(stream::in::fast&& stream) NOEXCEPT
61-
//// : point(read::bytes::fast(stream))
62-
////{
63-
////}
60+
point::point(stream::in::fast&& stream) NOEXCEPT
61+
: point(read::bytes::fast(stream))
62+
{
63+
}
6464

6565
point::point(stream::in::fast& stream) NOEXCEPT
6666
: point(read::bytes::fast(stream))

src/chain/script.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ script::script(const data_slice& data, bool prefix) NOEXCEPT
116116
{
117117
}
118118

119-
////script::script(stream::in::fast&& stream, bool prefix) NOEXCEPT
120-
//// : script(read::bytes::fast(stream), prefix)
121-
////{
122-
////}
119+
script::script(stream::in::fast&& stream, bool prefix) NOEXCEPT
120+
: script(read::bytes::fast(stream), prefix)
121+
{
122+
}
123123

124124
script::script(stream::in::fast& stream, bool prefix) NOEXCEPT
125125
: script(read::bytes::fast(stream), prefix)

src/chain/transaction.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ transaction::transaction(const data_slice& data, bool witness) NOEXCEPT
103103
{
104104
}
105105

106-
////transaction::transaction(stream::in::fast&& stream, bool witness) NOEXCEPT
107-
//// : transaction(read::bytes::fast(stream), witness)
108-
////{
109-
////}
106+
transaction::transaction(stream::in::fast&& stream, bool witness) NOEXCEPT
107+
: transaction(read::bytes::fast(stream), witness)
108+
{
109+
}
110110

111111
transaction::transaction(stream::in::fast& stream, bool witness) NOEXCEPT
112112
: transaction(read::bytes::fast(stream), witness)

src/chain/witness.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ witness::witness(const data_slice& data, bool prefix) NOEXCEPT
7777
{
7878
}
7979

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

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

0 commit comments

Comments
 (0)