File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -901,12 +901,16 @@ struct PSBTInput
901
901
Sidechain::Bitcoin::CTransactionRef tx;
902
902
OverrideStream<Stream> os (&s, s.GetType (), s.GetVersion ());
903
903
UnserializeFromVector (os, tx);
904
- m_peg_in_tx = tx;
904
+ if (tx) {
905
+ m_peg_in_tx = tx;
906
+ }
905
907
} else {
906
908
CTransactionRef tx;
907
909
OverrideStream<Stream> os (&s, s.GetType (), s.GetVersion ());
908
910
UnserializeFromVector (os, tx);
909
- m_peg_in_tx = tx;
911
+ if (tx) {
912
+ m_peg_in_tx = tx;
913
+ }
910
914
}
911
915
break ;
912
916
}
@@ -1091,9 +1095,9 @@ struct PSBTInput
1091
1095
} else if (subkey_len != 1 ) {
1092
1096
throw std::ios_base::failure (" Input issuance needs blinded flag is more than one byte type" );
1093
1097
}
1094
- bool b;
1098
+ uint8_t b;
1095
1099
UnserializeFromVector (s, b);
1096
- m_blinded_issuance = b;
1100
+ m_blinded_issuance = !! b;
1097
1101
break ;
1098
1102
}
1099
1103
default :
You can’t perform that action at this time.
0 commit comments