fix GetBlock().
This commit is contained in:
parent
0335a128b8
commit
de286968d0
|
@ -989,7 +989,7 @@ NAN_METHOD(GetBlock) {
|
||||||
NanScope();
|
NanScope();
|
||||||
|
|
||||||
if (args.Length() < 2
|
if (args.Length() < 2
|
||||||
|| (!args[0]->IsString() || !args[0]->IsNumber())
|
|| (!args[0]->IsString() && !args[0]->IsNumber())
|
||||||
|| !args[1]->IsFunction()) {
|
|| !args[1]->IsFunction()) {
|
||||||
return NanThrowError(
|
return NanThrowError(
|
||||||
"Usage: bitcoindjs.getBlock([blockHash,blockHeight], callback)");
|
"Usage: bitcoindjs.getBlock([blockHash,blockHeight], callback)");
|
||||||
|
|
Loading…
Reference in New Issue