Skip to content

Commit 7b616de

Browse files
committed
Fix optional allowed field
1 parent 1504821 commit 7b616de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

json/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ use bitcoin::consensus::encode;
3030
use bitcoin::hashes::hex::FromHex;
3131
use bitcoin::hashes::sha256;
3232
use bitcoin::{
33-
bip158, bip32, Address, Amount, Network, PrivateKey, PublicKey, Script,
34-
ScriptBuf, SignedAmount, Transaction,
33+
bip158, bip32, Address, Amount, Network, PrivateKey, PublicKey, Script, ScriptBuf,
34+
SignedAmount, Transaction,
3535
};
3636
use serde::de::Error as SerdeError;
3737
use serde::{Deserialize, Serialize};
@@ -908,7 +908,7 @@ impl SignRawTransactionResult {
908908
#[derive(Clone, PartialEq, Eq, Debug, Deserialize, Serialize)]
909909
pub struct TestMempoolAcceptResult {
910910
pub txid: bitcoin::Txid,
911-
pub allowed: bool,
911+
pub allowed: Option<bool>,
912912
#[serde(rename = "reject-reason")]
913913
pub reject_reason: Option<String>,
914914
/// Virtual transaction size as defined in BIP 141 (only present when 'allowed' is true)

0 commit comments

Comments
 (0)