Improve magic bytes push performance

This commit is contained in:
DanGould 2023-01-09 23:10:07 -05:00
parent 1f7affbc95
commit debcce6a03
No known key found for this signature in database
GPG Key ID: B07290B28996AFE0
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ impl PartiallySignedTransaction {
let mut buf: Vec<u8> = Vec::new(); let mut buf: Vec<u8> = Vec::new();
// <magic> // <magic>
buf.extend(b"psbt"); buf.extend_from_slice(b"psbt");
buf.push(0xff_u8); buf.push(0xff_u8);