We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ee6acb commit f636523Copy full SHA for f636523
README.md
@@ -66,6 +66,7 @@ Goerli deposit contract is `0xff50ed3d0ec03aC01D4C79aAd74928BFF48a7b2b` but some
66
Store in `.env` so that it's picked up by `docker-compose`
67
68
```
69
+export NETWORK=goerli
70
export POOL_ADDRESS=0x8eba4A4A8d4DFa78BCB734efD1eA9f33b61e3243
71
export UPDATER_KEYSTORE_PASS=xxx
72
oracle/block.go
@@ -58,6 +58,12 @@ func NewFullBlock(
58
func (b *FullBlock) MevRewardInWei() (*big.Int, bool, string) {
59
60
txs := b.GetBlockTransactions()
61
+
62
+ // Check if block is empty (no txs)
63
+ if len(txs) == 0 {
64
+ return big.NewInt(0), false, ""
65
+ }
lastTx := txs[len(txs)-1]
tx, msg, err := DecodeTx(lastTx)
0 commit comments