diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-17 15:58:36 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-17 15:58:36 +0200 |
commit | 8c0c4b5331d3cb467bb24c253fae3ca623ba5205 (patch) | |
tree | 755247f130c627a093e6e01894d103bceef18312 /lib/wallet/cryptoLib.ts | |
parent | 6262af4ad73763e736bfb96a88c5d66e0ec51532 (diff) |
automatic refresh
Diffstat (limited to 'lib/wallet/cryptoLib.ts')
-rw-r--r-- | lib/wallet/cryptoLib.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/wallet/cryptoLib.ts b/lib/wallet/cryptoLib.ts index 3b9d6d228..2782327ac 100644 --- a/lib/wallet/cryptoLib.ts +++ b/lib/wallet/cryptoLib.ts @@ -203,6 +203,8 @@ namespace RpcFunctions { let newAmount = new native.Amount(cd.coin.currentAmount); newAmount.sub(coinSpend); cd.coin.currentAmount = newAmount.toJson(); + cd.coin.dirty = true; + cd.coin.transactionPending = true; let d = new native.DepositRequestPS({ h_contract: native.HashCode.fromCrock(offer.H_contract), @@ -338,4 +340,8 @@ namespace RpcFunctions { return refreshSession; } + export function hashString(str: string): string { + const b = native.ByteArray.fromStringWithNull(str); + return b.hash().toCrock(); + } }
\ No newline at end of file |