block segfault fixed.
This commit is contained in:
parent
6c0cfd17c0
commit
8ec217d1e7
|
@ -3073,6 +3073,7 @@ async_import_key_after(uv_work_t *req) {
|
|||
static inline void
|
||||
cblock_to_jsblock(const CBlock& cblock, const CBlockIndex* cblock_index, Local<Object> jsblock) {
|
||||
jsblock->Set(NanNew<String>("hash"), NanNew<String>(cblock.GetHash().GetHex().c_str()));
|
||||
return;
|
||||
CMerkleTx txGen(cblock.vtx[0]);
|
||||
txGen.SetMerkleBranch(cblock);
|
||||
jsblock->Set(NanNew<String>("confirmations"), NanNew<Number>((int)txGen.GetDepthInMainChain())->ToInt32());
|
||||
|
|
Loading…
Reference in New Issue