]> Untitled Git - bdk/commit
[blockchain] Fix `sent` calculation in the RPC backend
authorDaniela Brozzoni <danielabrozzoni@protonmail.com>
Thu, 17 Feb 2022 22:39:11 +0000 (23:39 +0100)
committerDaniela Brozzoni <danielabrozzoni@protonmail.com>
Fri, 18 Feb 2022 11:54:51 +0000 (12:54 +0100)
commitbfd0d13779003f11fa099a0b665052c18ce6e500
tree8d9f4e065cdfe40689d19e560f6aaad1bf9daaa0
parent128c37595c5cfeacdb8e999da5795a9aa28ad67b
[blockchain] Fix `sent` calculation in the RPC backend

We used to consider a tx input as ours if we had the
tx that creates it in the database.
This commit actually checks if an input is ours before adding
its value to the `sent` field.
src/blockchain/rpc.rs
src/testutils/blockchain_tests.rs