Merge #213
213: Properly calculate the confirmations for Bitcoin tx r=da-kami a=da-kami Once the transaction was included into a block it has one confirmation - before inclusion it has zero. current-block-height - transaction-block-height = zero; but that means one confirmation. Hence, the confirmation calculation was adapted to: Current-block-height - (transaction-block-height - 1). I could not think of a more elegant solution - if you have one please comment :) Co-authored-by: Daniel Karzel <daniel@comit.network>pull/215/head
commit
c4df3fdcbc
Loading…
Reference in New Issue