From 7d7bc184dd7c5f04aaac4c9a4749bf4ae712fff0 Mon Sep 17 00:00:00 2001 From: Huiqi ZHENG Date: Thu, 31 Mar 2022 16:51:07 +0200 Subject: [PATCH] fix bot --- src/families/bitcoin/specs.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/families/bitcoin/specs.ts b/src/families/bitcoin/specs.ts index f6a26518a2..8dbeeeccae 100644 --- a/src/families/bitcoin/specs.ts +++ b/src/families/bitcoin/specs.ts @@ -256,7 +256,9 @@ const bitcoinLikeMutations = ({ test: ({ account }) => { expect( account.bitcoinResources?.utxos - .filter((u) => u.blockHeight && u.blockHeight < account.blockHeight) // Exclude pending UTXOs and the Utxos just written into new block + .filter( + (u) => u.blockHeight && u.blockHeight < account.blockHeight - 10 + ) // Exclude pending UTXOs and the Utxos just written into new block (10 blocks time) .reduce((p, c) => p.plus(c.value), new BigNumber(0)) .toString() ).toBe("0");