Update "file" and CICD

This commit is contained in:
Abdul Rabbani 2022-06-13 18:29:30 -04:00
parent 601b8e778c
commit 6805070b1e
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,7 @@ var TestConfig = Config{
GenesisBlock: "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",
NetworkID: "1",
ChainID: 1,
ID: "mockNodeID",
ID: "1",
ClientName: "go-ethereum",
},
}

View File

@ -197,8 +197,10 @@ func (sqw *SQLWriter) upsertIPLDRaw(blockNumber string, codec, mh uint64, raw []
}
func (sqw *SQLWriter) upsertHeaderCID(header models.HeaderModel) {
nodeId := fmt.Sprintf("{%s}", header.NodeID)
// {'1'}
stmt := fmt.Sprintf(headerInsert, header.BlockNumber, header.BlockHash, header.ParentHash, header.CID,
header.TotalDifficulty, header.NodeID, header.Reward, header.StateRoot, header.TxRoot,
header.TotalDifficulty, nodeId, header.Reward, header.StateRoot, header.TxRoot,
header.RctRoot, header.UncleRoot, header.Bloom, header.Timestamp, header.MhKey, 1, header.Coinbase)
sqw.stmts <- []byte(stmt)
indexerMetrics.blocks.Inc(1)