+ block sorting even for unconfirmed empty blocks

* code for transactions table moved to separate unit
This commit is contained in:
Taegus
2018-12-25 15:27:02 +01:00
parent a32b746e4f
commit ff68252e62
8 changed files with 288 additions and 64 deletions

View File

@@ -145,13 +145,14 @@ $(document).on("render_send", function() {
EthoMainGUI.showGeneralError(error);
},
function(transaction) {
console.log(JSON.stringify(transaction));
ipcRenderer.send('storeTransaction', {
block: element.block.toString(),
txhash: element.hash.toLowerCase(),
fromaddr: element.fromaddr.toLowerCase(),
timestamp: element.timestamp,
toaddr: element.toaddr.toLowerCase(),
value: element.value
block: transaction.blockNumber,
txhash: transaction.hash.toLowerCase(),
fromaddr: transaction.from.toLowerCase(),
timestamp: moment().format('YYYY-MM-DD HH:mm:ss'),
toaddr: transaction.to.toLowerCase(),
value: transaction.value
});
}
);