Added POS and transaction comment support
This commit is contained in:
parent
863c8bbf5f
commit
6dde238374
@ -81,6 +81,7 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
_this.daemon.cmd('submitblock',
|
_this.daemon.cmd('submitblock',
|
||||||
[blockHex],
|
[blockHex],
|
||||||
function(error, result){
|
function(error, result){
|
||||||
|
emitLog('submitBlockResult', result);
|
||||||
if (error)
|
if (error)
|
||||||
emitErrorLog('submitblock', 'rpc error when submitting block with submitblock')
|
emitErrorLog('submitblock', 'rpc error when submitting block with submitblock')
|
||||||
else
|
else
|
||||||
@ -92,6 +93,7 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
_this.daemon.cmd('getblocktemplate',
|
_this.daemon.cmd('getblocktemplate',
|
||||||
[{'mode': 'submit', 'data': blockHex}],
|
[{'mode': 'submit', 'data': blockHex}],
|
||||||
function(error, result){
|
function(error, result){
|
||||||
|
emitLog('submitBlockResult', result);
|
||||||
if (error)
|
if (error)
|
||||||
emitErrorLog('submitblock', 'rpc error when submitting block with getblocktemplate')
|
emitErrorLog('submitblock', 'rpc error when submitting block with getblocktemplate')
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user