Uncinfiremd transaction details

+1 vote
Is there a way to stop early quantity deduction when transaction is not been mined by any miner? [Avoiding deduction of quantity when the transaction is not added to any block in the chain by any miner]
asked Jun 19, 2017 by anonymous

1 Answer

0 votes

When you say "deduction", I assume you mean it in the sense of what is returned by APIs such as getaddressbalances? Because there is no absolute deduction in the blockchain sense until the transaction is confirmed.

If so I understand the request but you should understand that these APIs are taking account of unconfirmed transactions because they reflect the funds available for further spending.

Can you explain why you would want to consider unconfirmed transactions as if they have not yet deducted funds from the node's wallet?

answered Jun 20, 2017 by MultiChain
I have 3 miners and have set mining diversity = 0.6 which requires at least two miners should be active. But I have kept only one miner active and initiating a transaction to send assets to another address. Transaction will not be mined until mining consensus is met but quantity is deducted from the address which initiated transaction. Here I want to stop early deduction before transaction is confirmed.
MultiChain doesn't currently have an API to show an address's balance, including funds that have been spent in unconfirmed transactions. But this is just a matter of presentation, and if you want you can do this yourself, e.g. by scanning the memory pool for unconfirmation transactions and discounting their effect.
...