Skip to content

Commit

Permalink
Fix optional allowed field
Browse files Browse the repository at this point in the history
  • Loading branch information
jfldde committed Sep 4, 2024
1 parent 1504821 commit 7b616de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions json/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ use bitcoin::consensus::encode;
use bitcoin::hashes::hex::FromHex;
use bitcoin::hashes::sha256;
use bitcoin::{
bip158, bip32, Address, Amount, Network, PrivateKey, PublicKey, Script,
ScriptBuf, SignedAmount, Transaction,
bip158, bip32, Address, Amount, Network, PrivateKey, PublicKey, Script, ScriptBuf,
SignedAmount, Transaction,
};
use serde::de::Error as SerdeError;
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -908,7 +908,7 @@ impl SignRawTransactionResult {
#[derive(Clone, PartialEq, Eq, Debug, Deserialize, Serialize)]
pub struct TestMempoolAcceptResult {
pub txid: bitcoin::Txid,
pub allowed: bool,
pub allowed: Option<bool>,
#[serde(rename = "reject-reason")]
pub reject_reason: Option<String>,
/// Virtual transaction size as defined in BIP 141 (only present when 'allowed' is true)
Expand Down

0 comments on commit 7b616de

Please sign in to comment.