Permalink
Browse files

Security measure when sending pure change blocks

  • Loading branch information...
jaimehgb committed May 20, 2018
1 parent fbafceb commit f256a58f2895bdb9c4cfd59aaa22a346cc61f19d
Showing with 1 addition and 1 deletion.
  1. +1 −1 resources/assets/js/custom.js
@@ -743,7 +743,7 @@ $(document).ready(function(){
wallet.useAccount(blk.getAccount());
previousBalance = wallet.getBalanceUpToBlock(blk.getPrevious());
isStateAndReceiving = previousBalance.lesser(blk.getBalance());
isStateAndSending = previousBalance.greater(blk.getBalance());
isStateAndSending = previousBalance.greaterOrEquals(blk.getBalance());
}
if(blk.getType() == 'open' || blk.getType() == 'receive' || isStateAndReceiving )

0 comments on commit f256a58

Please sign in to comment.