Browse Source

fix for block #0 page after caching changes

fix-133-memory-crash
Dan Janosik 7 years ago
parent
commit
81a7d368c7
  1. 4
      app/api/rpcApi.js

4
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]);

Loading…
Cancel
Save