Fixed type rcpCommand -> rpcCommand lol

This commit is contained in:
Matt 2014-02-27 11:40:50 -07:00
parent d45c2fadc6
commit b6c8039168

View File

@ -90,9 +90,9 @@ var pool = module.exports = function pool(options, authorizeFn){
*/ */
function SubmitBlock(blockHex, callback){ function SubmitBlock(blockHex, callback){
var rcpCommand, rpcArgs; var rpcCommand, rpcArgs;
if (options.hasSubmitMethod){ if (options.hasSubmitMethod){
rcpCommand = 'submitblock'; rpcCommand = 'submitblock';
rpcArgs = [blockHex]; rpcArgs = [blockHex];
} }
else{ else{
@ -101,7 +101,7 @@ var pool = module.exports = function pool(options, authorizeFn){
} }
_this.daemon.cmd(rcpCommand, _this.daemon.cmd(rpcCommand,
rpcArgs, rpcArgs,
function(results){ function(results){
results.forEach(function(result){ results.forEach(function(result){