Skip to content

Commit 7ebb4da

Browse files
committed
Rem data_slice chain cons in favor of stream::in::fast&& overrides.
1 parent ee9a99e commit 7ebb4da

File tree

18 files changed

+2
-61
lines changed

18 files changed

+2
-61
lines changed

include/bitcoin/system/chain/block.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ class BC_API block
5555
block(const chain::header::cptr& header,
5656
const transactions_cptr& txs) NOEXCEPT;
5757

58-
block(const data_slice& data, bool witness) NOEXCEPT;
5958
block(stream::in::fast&& stream, bool witness) NOEXCEPT;
6059
block(stream::in::fast& stream, bool witness) NOEXCEPT;
6160
block(std::istream&& stream, bool witness) NOEXCEPT;

include/bitcoin/system/chain/header.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ class BC_API header
6666
const hash_digest& merkle_root, uint32_t timestamp, uint32_t bits,
6767
uint32_t nonce) NOEXCEPT;
6868

69-
header(const data_slice& data) NOEXCEPT;
7069
header(stream::in::fast&& stream) NOEXCEPT;
7170
header(stream::in::fast& stream) NOEXCEPT;
7271
header(std::istream&& stream) NOEXCEPT;

include/bitcoin/system/chain/input.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ class BC_API input
6868
input(const chain::point::cptr& point, const chain::script::cptr& script,
6969
const chain::witness::cptr& witness, uint32_t sequence) NOEXCEPT;
7070

71-
input(const data_slice& data) NOEXCEPT;
7271
input(stream::in::fast&& stream) NOEXCEPT;
7372
input(stream::in::fast& stream) NOEXCEPT;
7473
input(std::istream&& stream) NOEXCEPT;

include/bitcoin/system/chain/operation.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ class BC_API operation
8484
operation(const chunk_cptr& push_data, bool minimal) NOEXCEPT;
8585

8686
/// These deserialize operations (with codes), not from push-data.
87-
operation(const data_slice& op_data) NOEXCEPT;
8887
operation(stream::in::fast&& stream) NOEXCEPT;
8988
operation(stream::in::fast& stream) NOEXCEPT;
9089
operation(std::istream&& stream) NOEXCEPT;

include/bitcoin/system/chain/output.hpp

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

53-
output(const data_slice& data) NOEXCEPT;
5453
output(stream::in::fast&& stream) NOEXCEPT;
5554
output(stream::in::fast& stream) NOEXCEPT;
5655
output(std::istream&& stream) NOEXCEPT;

include/bitcoin/system/chain/point.hpp

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

60-
point(const data_slice& data) NOEXCEPT;
6160
point(stream::in::fast&& stream) NOEXCEPT;
6261
point(stream::in::fast& stream) NOEXCEPT;
6362
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
@@ -102,7 +102,7 @@ class BC_API script
102102
script(const operations& ops) NOEXCEPT;
103103
script(operations&& ops, bool prefail) NOEXCEPT;
104104
script(const operations& ops, bool prefail) NOEXCEPT;
105-
script(const data_slice& data, bool prefix) NOEXCEPT;
105+
106106
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;

include/bitcoin/system/chain/transaction.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ class BC_API transaction
6969
const chain::outputs& outputs, uint32_t locktime) NOEXCEPT;
7070
transaction(uint32_t version, const inputs_cptr& inputs,
7171
const outputs_cptr& outputs, uint32_t locktime) NOEXCEPT;
72-
73-
transaction(const data_slice& data, bool witness) NOEXCEPT;
72+
7473
transaction(stream::in::fast&& stream, bool witness) NOEXCEPT;
7574
transaction(stream::in::fast& stream, bool witness) NOEXCEPT;
7675
transaction(std::istream&& stream, bool witness) NOEXCEPT;

include/bitcoin/system/chain/witness.hpp

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

58-
witness(const data_slice& data, bool prefix) NOEXCEPT;
5958
witness(stream::in::fast&& stream, bool prefix) NOEXCEPT;
6059
witness(stream::in::fast& stream, bool prefix) NOEXCEPT;
6160
witness(std::istream&& stream, bool prefix) NOEXCEPT;

src/chain/block.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ block::block(const chain::header::cptr& header,
7272
{
7373
}
7474

75-
block::block(const data_slice& data, bool witness) NOEXCEPT
76-
: block(stream::in::fast(data), witness)
77-
{
78-
}
79-
8075
block::block(stream::in::fast&& stream, bool witness) NOEXCEPT
8176
: block(read::bytes::fast(stream), witness)
8277
{

0 commit comments

Comments
 (0)