Browse Source

Fix missing EthBlockNum in DB for Coordinator

feature/sql-semaphore1
Eduard S 4 years ago
parent
commit
a4a193c7f2
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      synchronizer/synchronizer.go

+ 4
- 3
synchronizer/synchronizer.go

@ -966,9 +966,10 @@ func (s *Synchronizer) auctionSync(ethBlock *common.Block) (*common.AuctionData,
// Get Coordinators
for _, evtSetCoordinator := range auctionEvents.SetCoordinator {
coordinator := common.Coordinator{
Bidder: evtSetCoordinator.BidderAddress,
Forger: evtSetCoordinator.ForgerAddress,
URL: evtSetCoordinator.CoordinatorURL,
Bidder: evtSetCoordinator.BidderAddress,
Forger: evtSetCoordinator.ForgerAddress,
URL: evtSetCoordinator.CoordinatorURL,
EthBlockNum: blockNum,
}
auctionData.Coordinators = append(auctionData.Coordinators, coordinator)
}

Loading…
Cancel
Save