vout: 0, fee: Some(SignedAmount::from_sat(0)), abandoned: None, }, trusted: None, comment: None, }) .collect(), ) } fn lock_unspent( &self, unlock: bool, outputs: Vec<JsonOutPoint>, ) -> Result<bool, jsonrpc_core::Error> { assert!(!unlock); let mut state = self.state(); if state.fail_lock_unspent { return Ok(false); } for output in outputs { let output = OutPoint { vout: output.vout, txid: output.txid, }; assert!(state.utxos.contains_key(&output)); state.locked.insert(output); } Ok(true) } fn list_descriptors(&self) -> Result<ListDescriptorsResult, jsonrpc_core::Error> { Ok(ListDescriptorsResult { wallet_name: "ord".into(), descriptors: self .state() .descriptors .iter() .map(|desc| Descriptor { desc: desc.to_string(), timestamp: Timestamp::Now, active: true,
Inscription number 60,004,877
Genesis block 829,284
File type text
File size 1.01 KB
Creation date Feb 7,2024 12:24 am