We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 687119b commit 7ba4142Copy full SHA for 7ba4142
integration_test/tests/blockchain.rs
@@ -218,11 +218,15 @@ fn blockchain__get_chain_tips__modelled() {
218
219
#[test]
220
fn blockchain__get_chain_tx_stats__modelled() {
221
- let node = Node::with_wallet(Wallet::None, &[]);
+ let node = Node::with_wallet(Wallet::Default, &[]);
222
+ node.fund_wallet();
223
+ let (_address, _tx) = node.create_mined_transaction();
224
225
let json: GetChainTxStats = node.client.get_chain_tx_stats().expect("getchaintxstats");
226
let model: Result<mtype::GetChainTxStats, GetChainTxStatsError> = json.into_model();
- model.unwrap();
227
+ let chain_tx_stats = model.unwrap();
228
+
229
+ assert!(chain_tx_stats.tx_rate.unwrap() > 0.0);
230
}
231
232
0 commit comments