|
|
@ -873,9 +873,7 @@ function run () { |
|
|
|
|
|
|
|
|
|
|
|
txlistener.startListening() |
|
|
|
txlistener.startListening() |
|
|
|
|
|
|
|
|
|
|
|
txlistener.event.register('newBlock', (block) => { |
|
|
|
txlistener.event.register('newTransaction', (tx) => { |
|
|
|
for (var t in block.transactions) { |
|
|
|
|
|
|
|
var tx = block.transactions[t] |
|
|
|
|
|
|
|
var resolvedTransaction = txlistener.resolvedTransaction(tx.hash) |
|
|
|
var resolvedTransaction = txlistener.resolvedTransaction(tx.hash) |
|
|
|
var address = null |
|
|
|
var address = null |
|
|
|
if (resolvedTransaction) { |
|
|
|
if (resolvedTransaction) { |
|
|
@ -886,7 +884,6 @@ function run () { |
|
|
|
resolvedContract: txlistener.resolvedContract(address), |
|
|
|
resolvedContract: txlistener.resolvedContract(address), |
|
|
|
resolvedTransaction: resolvedTransaction |
|
|
|
resolvedTransaction: resolvedTransaction |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// ----------------- autoCompile -----------------
|
|
|
|
// ----------------- autoCompile -----------------
|
|
|
|