Remove redundant MakeUCharSpan wrappers

This commit is contained in:
MarcoFalke 2020-11-25 11:21:14 +01:00
parent faf4aa2f47
commit fa29272459
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -1344,7 +1344,7 @@ static RPCHelpMan combinepsbt()
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << merged_psbt;
return EncodeBase64(MakeUCharSpan(ssTx));
return EncodeBase64(ssTx);
},
};
}
@ -1483,7 +1483,7 @@ static RPCHelpMan createpsbt()
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << psbtx;
return EncodeBase64(MakeUCharSpan(ssTx));
return EncodeBase64(ssTx);
},
};
}
@ -1552,7 +1552,7 @@ static RPCHelpMan converttopsbt()
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << psbtx;
return EncodeBase64(MakeUCharSpan(ssTx));
return EncodeBase64(ssTx);
},
};
}
@ -1643,7 +1643,7 @@ static RPCHelpMan utxoupdatepsbt()
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << psbtx;
return EncodeBase64(MakeUCharSpan(ssTx));
return EncodeBase64(ssTx);
},
};
}
@ -1739,7 +1739,7 @@ static RPCHelpMan joinpsbts()
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << shuffled_psbt;
return EncodeBase64(MakeUCharSpan(ssTx));
return EncodeBase64(ssTx);
},
};
}