mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-23 10:08:33 +02:00
use explicit protocol version (local is not safe)
This commit is contained in:
@@ -185,10 +185,9 @@ where
|
||||
libwallet::ErrorKind::ClientCallback("Error parsing TxWrapper: tx_bin".to_owned()),
|
||||
)?;
|
||||
|
||||
let tx: Transaction = ser::deserialize(&mut &tx_bin[..], ser::ProtocolVersion::local())
|
||||
.context(libwallet::ErrorKind::ClientCallback(
|
||||
"Error parsing TxWrapper: tx".to_owned(),
|
||||
))?;
|
||||
let tx: Transaction = ser::deserialize(&mut &tx_bin[..], ser::ProtocolVersion(1)).context(
|
||||
libwallet::ErrorKind::ClientCallback("Error parsing TxWrapper: tx".to_owned()),
|
||||
)?;
|
||||
|
||||
super::award_block_to_wallet(
|
||||
&self.chain,
|
||||
|
||||
Reference in New Issue
Block a user