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',
|
||||
[blockHex],
|
||||
function(error, result){
|
||||
emitLog('submitBlockResult', result);
|
||||
if (error)
|
||||
emitErrorLog('submitblock', 'rpc error when submitting block with submitblock')
|
||||
else
|
||||
@ -92,6 +93,7 @@ var pool = module.exports = function pool(options, authorizeFn){
|
||||
_this.daemon.cmd('getblocktemplate',
|
||||
[{'mode': 'submit', 'data': blockHex}],
|
||||
function(error, result){
|
||||
emitLog('submitBlockResult', result);
|
||||
if (error)
|
||||
emitErrorLog('submitblock', 'rpc error when submitting block with getblocktemplate')
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user