From 81a7d368c7a5a44bad1bc64d31adfd9840ffabb2 Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Fri, 29 Jun 2018 17:05:41 +0200 Subject: [PATCH] fix for block #0 page after caching changes --- app/api/rpcApi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/rpcApi.js b/app/api/rpcApi.js index 9e56f80..1d012c2 100644 --- a/app/api/rpcApi.js +++ b/app/api/rpcApi.js @@ -149,9 +149,9 @@ function getRawTransactions(txids) { if (coins[config.coin].genesisCoinbaseTransactionId) { if (txids.length == 1 && txids[0] == coins[config.coin].genesisCoinbaseTransactionId) { // copy the "confirmations" field from genesis block to the genesis-coinbase tx - getBlockByHeight(0).then(function(blockZeroResult) { + getBlockchainInfo().then(function(blockchainInfoResult) { var result = coins[config.coin].genesisCoinbaseTransaction; - result.confirmations = blockZeroResult.getblock.confirmations; + result.confirmations = blockchainInfoResult.blocks; resolve([result]);