Modify removal of transaction

This commit is contained in:
QiTao Weng 2021-04-11 03:18:10 +00:00
parent 3cb0a91d2a
commit 52132e3bd0

View File

@ -70,7 +70,8 @@ export class Transaction extends Unit {
this.compare(left, right).then(match => {
if ( match ) {
this.blockchain.submitTransactions([left, right])
newSnapshot = newSnapshot.filter( (item) => item !== left && item !== right )
this.firebase.ref('transaction').child(left.key).remove()
this.firebase.ref('transaction').child(right.key).remove()
}
})
}