|
|
@ -15,10 +15,10 @@ class TxLogger { |
|
|
|
constructor (opts = {}) { |
|
|
|
constructor (opts = {}) { |
|
|
|
this.event = new EventManager() |
|
|
|
this.event = new EventManager() |
|
|
|
this.opts = opts |
|
|
|
this.opts = opts |
|
|
|
opts.api.editorpanel.registerType('knownTransaction', (data) => { |
|
|
|
opts.api.editorpanel.registerLogType('knownTransaction', (data) => { |
|
|
|
return renderKnownTransaction(this, data) |
|
|
|
return renderKnownTransaction(this, data) |
|
|
|
}) |
|
|
|
}) |
|
|
|
opts.api.editorpanel.registerType('unknownTransaction', (data) => { |
|
|
|
opts.api.editorpanel.registerLogType('unknownTransaction', (data) => { |
|
|
|
return renderUnknownTransaction(this, data) |
|
|
|
return renderUnknownTransaction(this, data) |
|
|
|
}) |
|
|
|
}) |
|
|
|
opts.events.txListener.register('newTransaction', (tx) => { |
|
|
|
opts.events.txListener.register('newTransaction', (tx) => { |
|
|
|