Skip to content

Commit

Permalink
Merge pull request #128 from KenshiTech/feat/refine-consensus
Browse files Browse the repository at this point in the history
Feat/refine consensus
  • Loading branch information
pouya-eghbali authored Apr 15, 2024
2 parents ab4ddd5 + 5bfffd3 commit 19830ed
Show file tree
Hide file tree
Showing 38 changed files with 2,843 additions and 288 deletions.
2 changes: 1 addition & 1 deletion internal/app/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func Consumer() {
pos := pos.New(ethRPC)
db.Start()

correctnessService := correctnessService.New(ethRPC)
correctnessService := correctnessService.New(ethRPC, pos)
evmLogService := evmlogService.New(ethRPC, pos)
uniswapService := uniswapService.New(ethRPC, pos)

Expand Down
5 changes: 1 addition & 4 deletions internal/datasets/bls.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ type Signer struct {
type Signature struct {
Signature bls12381.G1Affine
Signer Signer
Processed bool
}

func (s *Signature) Sia() *sia.Sia {
return new(sia.Sia).
AddByteArray8(s.Signature.Marshal()).
EmbedSia(s.Signer.Sia()).
AddBool(s.Processed)
EmbedSia(s.Signer.Sia())
}

func (s *Signature) DeSia(sia *sia.Sia) *Signature {
Expand All @@ -33,7 +31,6 @@ func (s *Signature) DeSia(sia *sia.Sia) *Signature {
}

s.Signer.DeSia(sia)
s.Processed = sia.ReadBool()

return s
}
Expand Down
26 changes: 25 additions & 1 deletion internal/ent/assetprice.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions internal/ent/assetprice/assetprice.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions internal/ent/assetprice/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions internal/ent/assetprice_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 19830ed

Please sign in to comment.