From 9f52c538dd834bbf5b480fd1c2ccc54fc389969a Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 3 Dec 2014 11:03:54 -0800 Subject: [PATCH] fix typo. --- src/bitcoindjs.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 54bfa63d..affb9b16 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -1051,7 +1051,7 @@ async_get_block_after(uv_work_t *req) { /** * GetTransaction() - * bitcoind.getTx(txHash, [blockHash], callback) + * bitcoind.getTransaction(txHash, [blockHash], callback) * Read any transaction from disk asynchronously. */ @@ -1063,7 +1063,7 @@ NAN_METHOD(GetTransaction) { || !args[1]->IsString() || !args[2]->IsFunction()) { return NanThrowError( - "Usage: bitcoindjs.getTx(txHash, [blockHash], callback)"); + "Usage: bitcoindjs.getTransaction(txHash, [blockHash], callback)"); } String::Utf8Value txHash_(args[0]->ToString()); @@ -6082,7 +6082,7 @@ init(Handle target) { NODE_SET_METHOD(target, "stopping", IsStopping); NODE_SET_METHOD(target, "stopped", IsStopped); 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, "verifyBlock", VerifyBlock); NODE_SET_METHOD(target, "verifyTransaction", VerifyTransaction);