mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge ffb021612b into merged_master (Bitcoin PR bitcoin/bitcoin#28451)
This commit is contained in:
commit
352fbd36dc
45 changed files with 85 additions and 156 deletions
|
|
@ -8,14 +8,13 @@
|
|||
#include <script/pegins.h>
|
||||
#include <script/script.h>
|
||||
#include <streams.h>
|
||||
#include <version.h>
|
||||
|
||||
CTxOut GetPeginOutputFromWitness(const CScriptWitness& pegin_witness) {
|
||||
if (pegin_witness.stack.size() < 4) {
|
||||
return CTxOut();
|
||||
}
|
||||
|
||||
CDataStream stream(pegin_witness.stack[0], SER_NETWORK, PROTOCOL_VERSION);
|
||||
DataStream stream{pegin_witness.stack[0]};
|
||||
CAmount value;
|
||||
stream >> value;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue