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.
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.