@@ -87,8 +87,8 @@ NAN_METHOD(convert_blob) {
8787
8888 Local<Object> target = info[0 ]->ToObject ();
8989 uint64_t mergedMiningBlockVersion = BLOCK_MAJOR_VERSION_2;
90- if (args .Length () >= 2 ) {
91- mergedMiningBlockVersion = static_cast <uint64_t >(args [1 ]->ToNumber ()->NumberValue ());
90+ if (info .Length () >= 2 ) {
91+ mergedMiningBlockVersion = static_cast <uint64_t >(info [1 ]->ToNumber ()->NumberValue ());
9292 }
9393
9494 if (!Buffer::HasInstance (target))
@@ -127,8 +127,8 @@ void get_block_id(const Nan::FunctionCallbackInfo<v8::Value>& info) {
127127
128128 Local<Object> target = info[0 ]->ToObject ();
129129 uint64_t mergedMiningBlockVersion = BLOCK_MAJOR_VERSION_2;
130- if (args .Length () >= 2 ) {
131- mergedMiningBlockVersion = static_cast <uint64_t >(args [1 ]->ToNumber ()->NumberValue ());
130+ if (info .Length () >= 2 ) {
131+ mergedMiningBlockVersion = static_cast <uint64_t >(info [1 ]->ToNumber ()->NumberValue ());
132132 }
133133
134134 if (!Buffer::HasInstance (target))
@@ -161,8 +161,8 @@ void construct_block_blob(const Nan::FunctionCallbackInfo<v8::Value>& info) {
161161 Local<Object> nonce_buf = info[1 ]->ToObject ();
162162
163163 uint64_t mergedMiningBlockVersion = BLOCK_MAJOR_VERSION_2;
164- if (args .Length () >= 3 ) {
165- mergedMiningBlockVersion = static_cast <uint64_t >(args [2 ]->ToNumber ()->NumberValue ());
164+ if (info .Length () >= 3 ) {
165+ mergedMiningBlockVersion = static_cast <uint64_t >(info [2 ]->ToNumber ()->NumberValue ());
166166 }
167167
168168 if (!Buffer::HasInstance (block_template_buf) || !Buffer::HasInstance (nonce_buf))
0 commit comments