always ask node for tx no matter capabilities
This commit is contained in:
parent
81851190f0
commit
ab98283159
@ -280,11 +280,7 @@ impl Blockchain for RpcBlockchain {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn get_tx(&self, txid: &Txid) -> Result<Option<Transaction>, Error> {
|
fn get_tx(&self, txid: &Txid) -> Result<Option<Transaction>, Error> {
|
||||||
if self.capabilities.contains(&Capability::FullHistory) {
|
Ok(Some(self.client.get_raw_transaction(txid, None)?))
|
||||||
Ok(Some(self.client.get_raw_transaction(txid, None)?))
|
|
||||||
} else {
|
|
||||||
Ok(None)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn broadcast(&self, tx: &Transaction) -> Result<(), Error> {
|
fn broadcast(&self, tx: &Transaction) -> Result<(), Error> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user