Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JkLondon committed Dec 1, 2024
1 parent bfa7960 commit 1a5df2b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions turbo/jsonrpc/receipts/receipts_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ func (g *Generator) GetReceipt(ctx context.Context, cfg *chain.Config, tx kv.Tem
}
println("cum gas used", cumGasUsed, "first log index", firstLogIndex, "txNum", txNum)

println("let's look around")
for i := range 60 {
cumGasUsed1, _, firstLogIndex1, err := rawtemporaldb.ReceiptAsOf(tx, txNum+i-30)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / lint

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / lint

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / lint

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (ubuntu-22.04)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (ubuntu-22.04)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (ubuntu-22.04)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (ubuntu-22.04)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 128 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)
if err != nil {
return nil, err
}
println("cum gas used", cumGasUsed1, "first log index", firstLogIndex1, "txNum", txNum+i-30)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / lint

invalid operation: txNum + i (mismatched types uint64 and int) (typecheck)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / lint

invalid operation: txNum + i (mismatched types uint64 and int)) (typecheck)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / lint

invalid operation: txNum + i (mismatched types uint64 and int)) (typecheck)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (ubuntu-22.04)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests (ubuntu-22.04)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-14)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (ubuntu-22.04)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (ubuntu-22.04)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)

Check failure on line 132 in turbo/jsonrpc/receipts/receipts_generator.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2022)

invalid operation: txNum + i (mismatched types uint64 and int)
}

receipt, _, err = core.ApplyTransaction(cfg, core.GetHashFn(genEnv.header, genEnv.getHeader), g.engine, nil, genEnv.gp, genEnv.ibs, genEnv.noopWriter, genEnv.header, block.Transactions()[index], genEnv.usedGas, genEnv.usedBlobGas, vm.Config{})
if err != nil {
return nil, fmt.Errorf("ReceiptGen.GetReceipt: bn=%d, txnIdx=%d, %w", block.NumberU64(), index, err)
Expand Down

0 comments on commit 1a5df2b

Please sign in to comment.