bugfix: tx_parts omits two byte counts in serialization

This commit is contained in:
niftynei 2020-06-22 16:18:08 -05:00 committed by neil saitug
parent 77946bd9fe
commit ad6ca610b8

View File

@ -293,8 +293,10 @@ static void towire_wally_tx_input(u8 **pptr, const struct wally_tx_input *in)
towire_wally_tx_witness_stack(pptr, in->witness);
if (is_elements(chainparams)) {
towire_u32(pptr, sizeof(in->blinding_nonce));
towire_u8_array(pptr, in->blinding_nonce,
sizeof(in->blinding_nonce));
towire_u32(pptr, sizeof(in->entropy));
towire_u8_array(pptr, in->entropy, sizeof(in->entropy));
towire_u32(pptr, in->issuance_amount_len);
towire_u8_array(pptr, in->issuance_amount,