Skip to content

Commit

Permalink
Update "file" and CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdul Rabbani committed Jun 14, 2022
1 parent d2ee36d commit 573fdfd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
workflow_call:

env:
stack-orchestrator-ref: ${{ github.event.inputs.stack-orchestrator-ref || 'feature/geth-testing'}}
ipld-eth-db-ref: ${{ github.event.inputs.ipld-ethcl-db-ref || 'feature/startup-script' }}
stack-orchestrator-ref: "382aca8e42bc5e33f301f77cdd2e09cc80602fc3"
ipld-eth-db-ref: "7002ec054fd600d3023470bf1ccf3fc75aacb17c"
GOPATH: /tmp/go

jobs:
Expand Down
2 changes: 1 addition & 1 deletion statediff/indexer/database/file/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var TestConfig = Config{
GenesisBlock: "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",
NetworkID: "1",
ChainID: 1,
ID: "mockNodeID",
ID: "1",
ClientName: "go-ethereum",
},
}
4 changes: 3 additions & 1 deletion statediff/indexer/database/file/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 573fdfd

Please sign in to comment.