File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
include/bitcoin/database/impl/query Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -138,19 +138,17 @@ bool CLASS::set(const block& block, bool strong) NOEXCEPT
138138TEMPLATE
139139bool CLASS::populate (const input& input) const NOEXCEPT
140140{
141+ // Null point would return nullptr and be interpreted as missing.
141142 BC_ASSERT (!input.point ().is_null ());
143+
142144 if (input.prevout )
143145 return true ;
144146
145147 const auto tx = to_tx (input.point ().hash ());
146- input.prevout = get_output (tx, input.point ().index ());
147- input.metadata .coinbase = is_coinbase (tx);
148- input.metadata .inside = false ;
149148 input.metadata .parent = tx;
150-
151- // input.metadata is not populated.
152- // Null point would return nullptr and be interpreted as missing.
153- // //input.prevout = get_output(input.point());
149+ input.metadata .inside = false ;
150+ input.metadata .coinbase = is_coinbase (tx);
151+ input.prevout = get_output (tx, input.point ().index ());
154152 return !is_null (input.prevout );
155153}
156154
You can’t perform that action at this time.
0 commit comments