Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Hotfix/txn update frequency #551

Open
wants to merge 146 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
5a13f11
server/methods.js: set null as genesis does not define
59023g Nov 7, 2020
8db10c2
client/styles: sif gold
59023g Nov 7, 2020
81f2479
.meteor: update some versions
59023g Nov 7, 2020
c6f1db5
sif-testnet-settings.json
59023g Nov 7, 2020
6733a35
Update CHANGELOG.md
59023g Nov 11, 2020
8a7f427
Github Actions workflow
ilchebedelovski Nov 17, 2020
eabe8cf
Feature branch added as a trigger
ilchebedelovski Nov 19, 2020
47b4b02
develop branch as a trigger
ilchebedelovski Nov 19, 2020
239d816
Merge pull request #2 from Sifchain/feature/github-actions
ilchebedelovski Nov 23, 2020
381fc9d
Merge pull request #1 from Sifchain/develop
59023g Nov 23, 2020
3ead4a2
Merge commit 'ea65d22357ccff514707b' into 39.2
59023g Mar 18, 2021
2ced383
Updated release workflow.
Mar 18, 2021
e143dbd
Removed the slug actions.
Mar 18, 2021
0e1bf6a
Merge pull request #6 from Sifchain/feature/release
intl-man Mar 18, 2021
9284bfc
Merge pull request #4 from Sifchain/39.2
59023g Mar 19, 2021
21b04ba
Merge pull request #8 from Sifchain/master
59023g Mar 19, 2021
0af8271
Merge pull request #9 from Sifchain/develop
59023g Mar 19, 2021
ace39ba
ui/{Block, Transactions, TransactionTabs}: include clpTxs, pegTxs
59023g Mar 22, 2021
6e6719b
ui/{block,Transaction}Container: query mongo for more
59023g Mar 22, 2021
266da18
ui/{Activities,MsgType,Transaction,TransactionRow}: transaction display
59023g Mar 22, 2021
9b2b9fd
i18n/en-us: words
59023g Mar 22, 2021
eacd7b4
Workflow updates.
Apr 6, 2021
6022f1d
Merge pull request #11 from Sifchain/feature/workflow
intl-man Apr 6, 2021
24bfe8f
Release fixes.
Apr 6, 2021
ba1bd6e
Merge pull request #12 from Sifchain/bugfix/release
intl-man Apr 6, 2021
a8e3ca0
sifTxs, look
59023g Apr 6, 2021
0e9cc89
className, add missing tx query
59023g Apr 6, 2021
a7d4f46
Activities, Header: formatting, Show DEX URL
59023g Apr 6, 2021
397f2dc
Merge pull request #10 from Sifchain/sifTxs
59023g Apr 6, 2021
f69bbd5
api/transactions: get failed transactions
59023g Apr 6, 2021
8706b4a
Merge pull request #13 from Sifchain/master
59023g Apr 6, 2021
5f75dbb
Merge pull request #14 from Sifchain/testnet
59023g Apr 6, 2021
a845f3e
Merge pull request #16 from Sifchain/testnet
59023g Apr 6, 2021
eeade0f
ui/Validator: back to List color
59023g Apr 23, 2021
47db3be
ui/Transaction: Fee fix
59023g Apr 23, 2021
86b03e9
ui/ChainState: remove Market Cap and Inflation
59023g Apr 23, 2021
5eef11a
ui/Activites: Swap copy
59023g Apr 23, 2021
531ace6
utils/coins: number format
59023g Apr 23, 2021
a6852f9
Merge pull request #20 from Sifchain/feat/numbers
59023g Apr 23, 2021
e53ddb1
Merge pull request #21 from Sifchain/develop
59023g Apr 23, 2021
e197906
Updated Sifchain changelog.
Apr 27, 2021
d2c87c6
Merge pull request #22 from Sifchain/develop
intl-man Apr 27, 2021
1af4d63
Merge pull request #23 from Sifchain/testnet
59023g Apr 28, 2021
6788c2a
added trigger pipeline for downstream automation jobs
May 19, 2021
0548371
Merge pull request #25 from Sifchain/adding-trigger-pipeline
gzukel May 19, 2021
a6998b6
updated the workflow trigger cluster name was wrong
May 19, 2021
5e6f769
Merge pull request #26 from Sifchain/adding-trigger-pipeline
gzukel May 19, 2021
043288f
Added testnet to the workflow trigger so it will trigger testnet pipe…
May 19, 2021
fb7ba92
Merge pull request #27 from Sifchain/adding-trigger-pipeline
gzukel May 19, 2021
a1b66fc
Added version files and cat varion and set variable step in git pipeline
May 20, 2021
d5d757d
Merge pull request #28 from Sifchain/adding-trigger-pipeline
gzukel May 20, 2021
1303aba
Added version files and cat varion and set variable step in git pipeline
May 20, 2021
0a2e910
Added version files and cat varion and set variable step in git pipeline
May 20, 2021
16e3bcc
Added version files and cat varion and set variable step in git pipeline
May 20, 2021
12f28a7
disabled the git build and push from bigdipper release yaml because t…
May 20, 2021
926591e
upped the devnet version for testing
May 20, 2021
f61208a
removed debugging trigger its working as intended now
May 20, 2021
8ebb084
Merge pull request #29 from Sifchain/adding-trigger-pipeline
gzukel May 20, 2021
86d394b
updated the way it passes version
May 21, 2021
3e5b1ab
Merge pull request #30 from Sifchain/adding-trigger-pipeline
gzukel May 21, 2021
7ce7d9e
changed version to single file
May 22, 2021
90c375e
Merge pull request #31 from Sifchain/adding-trigger-pipeline
gzukel May 22, 2021
45cc7fe
Merge pull request #32 from Sifchain/develop
gzukel May 25, 2021
c7c0bd4
Version bump.
Jun 4, 2021
0fa04a5
Merge pull request #33 from Sifchain/develop
59023g Jun 11, 2021
078bff1
Trigger Build.
Jun 11, 2021
13f22c4
Trigger Build.
Jun 11, 2021
c64bf31
Trigger Build.
Jun 11, 2021
39ed5f8
Merge tag 'v0.41.x-14.2' of github.com:forbole/big-dipper into develop
ajoslin Jun 17, 2021
2a01f80
Fix style issues
ajoslin Jun 18, 2021
92e8ba4
Add lint
ajoslin Jun 18, 2021
f199e0e
Add dispensation events
ajoslin Jun 21, 2021
68161b7
Build a release for a feature branch.
Jun 24, 2021
7cbbda4
Update UI and remove ledger entries
ajoslin Jun 24, 2021
11a8db7
Fix wrong chainId being used
ajoslin Jun 24, 2021
a981ae1
Fix NPE on element getBoundingClientRect
ajoslin Jun 24, 2021
627cb30
Merge pull request #36 from Sifchain/35-dispensations-not-displaying
sifmoon Jun 24, 2021
1228e90
Try again with dispensations
ajoslin Jun 24, 2021
69ef9af
Merge pull request #37 from Sifchain/35-dispensations-not-displaying
sifmoon Jun 24, 2021
8c71cba
Try again again
ajoslin Jun 24, 2021
3b03a89
Merge pull request #38 from Sifchain/35-dispensations-not-displaying
sifmoon Jun 24, 2021
413471e
Add dispensations display
ajoslin Jun 30, 2021
04ffc03
Remove test file
ajoslin Jun 30, 2021
48c14e4
Merge pull request #39 from Sifchain/35-dispensations-not-displaying
sifmoon Jun 30, 2021
9421dc0
Version bump.
Jul 1, 2021
2fc026a
Trigger build.
Jul 1, 2021
2777b49
Trigger build.
Jul 1, 2021
3e9b354
added trigger for 042 branch
Jul 2, 2021
f3919cf
added trigger for 042 branch
Jul 2, 2021
37413cf
Merge pull request #40 from Sifchain/chainops/add042
gzukel Jul 2, 2021
1c98596
change event type name
Jul 2, 2021
5858fc1
Merge pull request #41 from Sifchain/chainops/add042
gzukel Jul 2, 2021
a34d9f6
incriment version to trigger pipeline
Jul 2, 2021
b958950
changed to theright version
Jul 2, 2021
1191d16
Merge pull request #42 from Sifchain/trigger42
intl-man Jul 2, 2021
07f8941
add pipeline to 042
Jul 2, 2021
8cb2b7e
Merge pull request #43 from Sifchain/trigger42
gzukel Jul 2, 2021
b3a670d
add pipeline to 042
Jul 2, 2021
3bd6fbc
Merge pull request #44 from Sifchain/trigger42
gzukel Jul 2, 2021
a4992be
added to 42
Jul 2, 2021
b343be6
updated the 42 pipeline
Jul 2, 2021
5a8113d
Merge pull request #45 from Sifchain/update42pipeline
gzukel Jul 2, 2021
00b6645
Merge pull request #46 from Sifchain/trigger42
gzukel Jul 2, 2021
dd7d6f0
new trigger
Jul 2, 2021
3ef3e8f
Merge pull request #47 from Sifchain/trigger42
gzukel Jul 2, 2021
afa13bf
updated trigger
Jul 2, 2021
a108ac7
Merge pull request #48 from Sifchain/trigger42
gzukel Jul 2, 2021
67c8113
updated the readme to trigger deploymnet
Jul 13, 2021
397ff98
Merge pull request #49 from Sifchain/trigger42
gzukel Jul 13, 2021
cc4b441
updated the readme to trigger deploymnet
Jul 13, 2021
3404cdf
Merge pull request #50 from Sifchain/trigger42
gzukel Jul 13, 2021
387dd4c
increment version for deploy
Jul 13, 2021
c447ec4
Merge pull request #51 from Sifchain/trigger42
gzukel Jul 13, 2021
a78e597
new trigger deployment
Jul 13, 2021
2e05593
Merge pull request #52 from Sifchain/trigger42
gzukel Jul 13, 2021
5a5b17f
updated some extra loggin on the validator method to see where its fa…
Jul 13, 2021
6655fbb
Merge pull request #53 from Sifchain/trigger42
gzukel Jul 13, 2021
f90252e
removed the extra logging
Jul 13, 2021
c580d8e
increment version
Jul 13, 2021
964cdc9
increment version
Jul 13, 2021
3d50c44
Merge pull request #54 from Sifchain/trigger42
gzukel Jul 13, 2021
9bb5a3c
Testing lowering threshold to 5
daechoi Jul 13, 2021
50671a1
Version bump.
Jul 13, 2021
a008c08
Merge branch 'master' into feature/0.42
daechoi Jul 13, 2021
91f7b92
Version bump.
Jul 13, 2021
921d2f8
Version bump.
Jul 14, 2021
87136a7
ui/Activities: fix MsgSubmitProposal
59023g Jul 21, 2021
b132f94
version bump
59023g Jul 22, 2021
6a3a267
Disabled workflows, temporarily.
Jul 27, 2021
c2abde7
Merge branch 'develop' into feature/0.42
intl-man Jul 27, 2021
c1109a2
Merge pull request #61 from Sifchain/feature/0.42
intl-man Jul 27, 2021
144cc9a
Merge branch 'testnet' into develop
intl-man Jul 27, 2021
9faeaaa
Merge pull request #62 from Sifchain/develop
intl-man Jul 27, 2021
fc29d7b
Merge pull request #63 from Sifchain/testnet
intl-man Jul 27, 2021
62b900d
Enable the release workflow.
Jul 27, 2021
266e9bb
Merge pull request #64 from Sifchain/develop
intl-man Jul 27, 2021
ff22013
Merge pull request #65 from Sifchain/testnet
intl-man Jul 27, 2021
18e30bf
Updates the number of transactions to 500
daechoi Jul 28, 2021
236aea6
version bump
59023g Jul 28, 2021
852d926
validators: hardcode profile url
59023g Jul 28, 2021
8d4cd0e
Merge pull request #69 from Sifchain/hotfix/validator-profile
59023g Jul 28, 2021
3573c17
Merge pull request #70 from Sifchain/hotfix/validator-profile
59023g Jul 28, 2021
4123457
re-enebaled trigger pipeline
Jul 28, 2021
7ea547b
re-enebaled trigger pipeline
Jul 28, 2021
e7548b6
Merge pull request #72 from Sifchain/devtrigger
gzukel Jul 28, 2021
c008eb0
Merge branch 'master' into hotfix/txn_update_frequency
intl-man Oct 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/042_devnet_on_merge_trigger_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#name: 042 Trigger DevNet Block Explorer Build And Deploy Pipeline
#on:
# push:
# branches:
# - 'feature/0.42'
# #test trigger
#
#jobs:
# DevNet:
# name: Trigger Block Explorer Pipeline
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
#
# - name: Set version
# run: |
# VER=$(cat versions/version)
# echo $VER
# echo "VERSION=$VER" >> $GITHUB_ENV
#
# - name: 042 DevNet Trigger Block Explorer Pipeline
# if: ${{ github.ref == 'refs/heads/feature/0.42' }}
# uses: mvasigh/dispatch-action@main
# with:
# token: ${{ secrets.CHAINOPS_ACCESS_TOKEN }}
# repo: chainOps
# owner: Sifchain
# event_type: build_bigdipper_042
# message: |
# {
# "aws_region": "us-east-1",
# "target_big_dipper_branch": "feature/0.42",
# "app_region": "us",
# "aws_cluster_name": "sifchain-aws-devnet-042-data",
# "aws_role": "arn:aws:iam::346064283538:role/OrganizationAccountAccessRole",
# "app_namespace": "block-explorer",
# "image": "sifchain/block-explorer",
# "image_tag": "devnet-${{ env.VERSION }}",
# "version": "${{ env.VERSION }}",
# "env": "data",
# "app_name": "block-explorer",
# "app_env": "data"
# }
70 changes: 70 additions & 0 deletions .github/workflows/devnet_on_merge_trigger_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Trigger DevNet Block Explorer Build And Deploy Pipeline
on:
push:
branches:
- 'develop'
- 'testnet'
- 'master'

jobs:
DevNet:
name: Trigger Block Explorer Pipeline
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set version
run: |
VER=$(cat versions/version)
echo $VER
echo "VERSION=$VER" >> $GITHUB_ENV

- name: DevNet Trigger Block Explorer Pipeline
if: ${{ github.ref == 'refs/heads/develop' }}
uses: mvasigh/dispatch-action@main
with:
# You should create a personal access token and store it in your repository
token: ${{ secrets.CHAINOPS_ACCESS_TOKEN }}
repo: chainOps
owner: Sifchain
event_type: build_bigdipper
message: |
{
"aws_region": "us-east-2",
"target_big_dipper_branch": "develop",
"app_region": "us",
"aws_cluster_name": "sifchain-aws-devnet-data",
"aws_role": "arn:aws:iam::346064283538:role/OrganizationAccountAccessRole",
"app_namespace": "block-explorer",
"image": "sifchain/block-explorer",
"image_tag": "devnet-${{ env.VERSION }}",
"version": "${{ env.VERSION }}",
"env": "data",
"app_name": "block-explorer",
"app_env": "data"
}

- name: TestNet Trigger Block Explorer Pipeline
if: ${{ github.ref == 'refs/heads/testnet' }}
uses: mvasigh/dispatch-action@main
with:
# You should create a personal access token and store it in your repository
token: ${{ secrets.CHAINOPS_ACCESS_TOKEN }}
repo: chainOps
owner: Sifchain
event_type: build_bigdipper
message: |
{
"aws_region": "us-east-2",
"target_big_dipper_branch": "testnet",
"app_region": "us",
"aws_cluster_name": "sifchain-aws-testnet-data",
"aws_role": "arn:aws:iam::346064283538:role/OrganizationAccountAccessRole",
"app_namespace": "block-explorer",
"image": "sifchain/block-explorer",
"image_tag": "testnet-${{ env.VERSION }}",
"version": "${{ env.VERSION }}",
"env": "data",
"app_name": "block-explorer",
"app_env": "data"
}
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
release:
types: [published]

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Login to Docker Hub
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}

- name: Inject slug/short variables
uses: rlespinasse/[email protected]

- name: Build docker image
run: |
docker build -t sifchain/block-explorer:${{ env.GITHUB_REF_SLUG }} .

- name: Push docker images
run: |
docker push sifchain/block-explorer:${{ env.GITHUB_REF_SLUG }}
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ ENV SCRIPTS_FOLDER /docker

RUN apk --no-cache add \
bash \
ca-certificates
ca-certificates \
curl \
jq

COPY --from=1 $SCRIPTS_FOLDER $SCRIPTS_FOLDER/

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Block Explorer for Cosmos


## Projects running on mainnets

[Explore Akash with Big Dipper](https://akash.bigdipper.live/)
Expand Down
11 changes: 11 additions & 0 deletions SIFCHAIN_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

----

# v0.2.0
> April 27, 2021

## 🐛 Bug Fixes

- [UI] Transaction fee is confusing on the transaction page (rowan vs ROWAN).
- [UI] Decimal formatting updates for cUSDT.
- [UI] Color rixes for the "Back to list" option on the validator page.
6 changes: 3 additions & 3 deletions both/document.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<head>
<meta charset="utf-8" />
<title>Big Dipper | Block Explorer by Forbole</title>
<title>Sifchain - Block Explorer</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Inconsolata&Red+Hat+Display:wght@500&display=swap" rel="stylesheet">
<link rel="shortcut icon" type="image/png" href="/img/big-dipper.png"/>
<link rel="apple-touch-icon" sizes="180x180" href="/img/big-dipper.png">
<link rel="shortcut icon" type="image/png" href="/img/sifchain.svg"/>
<link rel="apple-touch-icon" sizes="180x180" href="/img/sifchain.svg">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta name="apple-mobile-web-app-capable" content="yes" />
Expand Down
4 changes: 3 additions & 1 deletion both/i18n/en-us.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ common:
hash: 'Hash'
more: 'More'
fullStop: '.'
searchPlaceholder: 'Search with tx hash / block height / address'
searchPlaceholder: 'Search with Tx Hash / Block Height / Address'
cancel: 'Cancel'
retry: 'Retry'
rewards: 'Rewards'
Expand Down Expand Up @@ -178,6 +178,8 @@ transactions:
distribution: 'Distribution'
governance: 'Governance'
slashing: 'Slashing'
clp: "CLP"
peg: "Peg"
proposals:
notFound: 'No proposal found.'
listOfProposals: 'Here is a list of governance proposals.'
Expand Down
11 changes: 11 additions & 0 deletions both/utils/coins.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ constructor(amount, denom=Meteor.settings.public.bondDenom) {
}
}

toString (precision) {
// default to display in mint denom if it has more than 4 decimal places
let minStake = Coin.StakingCoin.fraction/(precision?Math.pow(10, precision):10000)
// console.log(this._coin.denom, this._coin)
if ((this.amount < minStake) && this._coin.demon === "rowan") {
return `${numbro(this.amount).format('0,0.0000' )} ${this._coin.denom}`;
} else {
return `${precision?numbro(this.stakingAmount).format('0,0.' + '0'.repeat(precision)):autoformat(this.stakingAmount)} ${this._coin.displayName}`
}
}

get amount () {
return this._amount;
}
Expand Down
68 changes: 66 additions & 2 deletions client/styles.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,57 @@
$forbole-red: #bd081c;
$forbole-red: #CAA93A;
$primary: $forbole-red !default;

@import "materia/variables";
@import "bootstrap";
@import "materia/bootswatch";

@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap');

.nav-item { cursor: pointer }
.quick-note { font-weight: 900;
width: 100%;
border-top: 1px solid;
display: block;}

.card {
box-shadow: none;
border: 1px solid rgba(0,0,0,.5);
}

.navbar {
box-shadow: none;
}

.navbar-dark .navbar-nav .nav-link {
color: rgba(255, 255, 255, 1);
font-weight: 900;
}

#account > div:nth-child(2) > div > h3 > span > span > a {
color: white
}
#queryString {box-shadow: inset 0 -2px 0 #fff}
h1 { color: white }
#footer { display: none !important}

.bgw { background: white}
.cw {color: white}

#validator-list > .card { border: none}
#validator-list > div.validator-list.row > div > div:nth-child(1) {}
#validator-list > div.bgw.mt15 > div > div > div{border: none}
.mt15 { margin-top: 15px}
.p15 { padding: 15px}
.pl0 {padding-left: 0}
#main > div:nth-child(3) > div:nth-child(2) > div > div > div.col-md-8 > ul.nav-pills { background: white; padding: 15px}
#account > div:nth-child(2) > div > h3 > span > i { color: #343434 !important }
#account > div:nth-child(2) > div > h3 > span > span {overflow: hidden !important}

::placeholder { color: white !important; opacity: 1}
body {
font-size: inherit !important;
font-family: "PT Serif";
background: #caa93a;
}

.no-select {
Expand Down Expand Up @@ -1075,4 +1120,23 @@ body {
font-size: 18px;
cursor: help;
opacity: 0.7;
}
}

table, #block-table, .transactions-list {
background-color: white;
}
.status-switch {
background-color: white;
margin-top: 8px;
}
.validator-list {
padding-left: 0 !important;
padding-right: 0 !important;
.row {
margin: 0;
}
.card-body {
border: none;
border-radius: 0;
}
}
4 changes: 2 additions & 2 deletions imports/api/blocks/server/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ Meteor.methods({
let endBlockInsertTime = new Date();
console.log("Block insert time: "+((endBlockInsertTime-startBlockInsertTime)/1000)+"seconds.");

let chainStatus = Chain.findOne({chainId:block.block.header.chain_id});
let chainStatus = Chain.findOne({chainId:Meteor.settings.public.chainId});
let lastSyncedTime = chainStatus?chainStatus.lastSyncedTime:0;
let timeDiff;
let blockTime = Meteor.settings.params.defaultBlockTime;
Expand All @@ -447,7 +447,7 @@ Meteor.methods({
let endGetValidatorsTime = new Date();
console.log("Get height validators time: "+((endGetValidatorsTime-startGetValidatorsTime)/1000)+"seconds.");

Chain.update({chainId:block.block.header.chainId}, {$set:{lastSyncedTime:blockData.time, blockTime:blockTime}});
Chain.update({chainId:Meteor.settings.public.chainId}, {$set:{lastSyncedTime:blockData.time, blockTime:blockTime}});

analyticsData.averageBlockTime = blockTime;
analyticsData.timeDiff = timeDiff;
Expand Down
2 changes: 1 addition & 1 deletion imports/api/chain/server/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Meteor.methods({
let latestBlock = JSON.parse(response.content);

let chain = {};
chain.chainId = latestBlock.block.header.chain_id;
chain.chainId = Meteor.settings.public.chainId
chain.latestBlockHeight = parseInt(latestBlock.block.header.height);
chain.latestBlockTime = latestBlock.block.header.time;
let latestState = ChainStates.findOne({}, {sort: {height: -1}})
Expand Down
Loading