fix GetBlock().

This commit is contained in:
Christopher Jeffrey 2014-11-19 17:04:19 -08:00
parent 0335a128b8
commit de286968d0
1 changed files with 1 additions and 1 deletions

View File

@ -989,7 +989,7 @@ NAN_METHOD(GetBlock) {
NanScope();
if (args.Length() < 2
|| (!args[0]->IsString() || !args[0]->IsNumber())
|| (!args[0]->IsString() && !args[0]->IsNumber())
|| !args[1]->IsFunction()) {
return NanThrowError(
"Usage: bitcoindjs.getBlock([blockHash,blockHeight], callback)");