Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/refine consensus #128

Merged
merged 2 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
Loading