|
|
@ -141,6 +141,9 @@ export const onBlockMined = (network: string): PromiseAction<void> => async (
|
|
|
|
dispatch(Web3Actions.updateAccount(accounts[i], a, network));
|
|
|
|
dispatch(Web3Actions.updateAccount(accounts[i], a, network));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// there are no new txs, just update block
|
|
|
|
// there are no new txs, just update block
|
|
|
|
|
|
|
|
// TODO: There still could be internal transactions as a result of contract
|
|
|
|
|
|
|
|
// If that's the case, account balance won't be updated
|
|
|
|
|
|
|
|
// Currently waiting for deprecating web3 and utilising new blockbook
|
|
|
|
dispatch(AccountsActions.update({ ...accounts[i], block: a.block }));
|
|
|
|
dispatch(AccountsActions.update({ ...accounts[i], block: a.block }));
|
|
|
|
|
|
|
|
|
|
|
|
// HACK: since blockbook can't work with smart contracts for now
|
|
|
|
// HACK: since blockbook can't work with smart contracts for now
|
|
|
|