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

refactor: analyzer/runtime: Store a more-parsed tx in the db #368

Merged
merged 8 commits into from
Mar 30, 2023
2 changes: 1 addition & 1 deletion analyzer/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func (m *Main) queueDbUpdates(batch *storage.QueryBatch, data *BlockData) {
transactionData.Index,
transactionData.Hash,
transactionData.EthHash,
transactionData.Fee.String(),
&transactionData.Fee, // pgx bug? Needs a *BigInt (not BigInt) to know how to serialize.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we defined a method only on *BigInt?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v tangential but encoding/gob complains if you use pointer receivers like func (t *MyType) MarshalBytes... go pointers are funky i guess

transactionData.GasLimit,
transactionData.GasUsed,
transactionData.Size,
Expand Down