fix typo.

This commit is contained in:
Christopher Jeffrey 2014-12-03 11:03:54 -08:00
parent 81c59966fa
commit 9f52c538dd

View File

@ -1051,7 +1051,7 @@ async_get_block_after(uv_work_t *req) {
/** /**
* GetTransaction() * GetTransaction()
* bitcoind.getTx(txHash, [blockHash], callback) * bitcoind.getTransaction(txHash, [blockHash], callback)
* Read any transaction from disk asynchronously. * Read any transaction from disk asynchronously.
*/ */
@ -1063,7 +1063,7 @@ NAN_METHOD(GetTransaction) {
|| !args[1]->IsString() || !args[1]->IsString()
|| !args[2]->IsFunction()) { || !args[2]->IsFunction()) {
return NanThrowError( return NanThrowError(
"Usage: bitcoindjs.getTx(txHash, [blockHash], callback)"); "Usage: bitcoindjs.getTransaction(txHash, [blockHash], callback)");
} }
String::Utf8Value txHash_(args[0]->ToString()); String::Utf8Value txHash_(args[0]->ToString());
@ -6082,7 +6082,7 @@ init(Handle<Object> target) {
NODE_SET_METHOD(target, "stopping", IsStopping); NODE_SET_METHOD(target, "stopping", IsStopping);
NODE_SET_METHOD(target, "stopped", IsStopped); NODE_SET_METHOD(target, "stopped", IsStopped);
NODE_SET_METHOD(target, "getBlock", GetBlock); NODE_SET_METHOD(target, "getBlock", GetBlock);
NODE_SET_METHOD(target, "getTx", GetTransaction); NODE_SET_METHOD(target, "getTransaction", GetTransaction);
NODE_SET_METHOD(target, "broadcastTx", BroadcastTx); NODE_SET_METHOD(target, "broadcastTx", BroadcastTx);
NODE_SET_METHOD(target, "verifyBlock", VerifyBlock); NODE_SET_METHOD(target, "verifyBlock", VerifyBlock);
NODE_SET_METHOD(target, "verifyTransaction", VerifyTransaction); NODE_SET_METHOD(target, "verifyTransaction", VerifyTransaction);