diff --git a/core/types/receipt.go b/core/types/receipt.go index e5689de13f0..8741cbc6eae 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -20,19 +20,25 @@ import ( "bytes" "errors" "fmt" - "github.com/ledgerwatch/erigon-lib/common/hexutil" "io" "math/big" libcommon "github.com/ledgerwatch/erigon-lib/common" + "github.com/ledgerwatch/erigon-lib/common/hexutil" "github.com/ledgerwatch/erigon-lib/common/hexutility" - "github.com/ledgerwatch/erigon/crypto" "github.com/ledgerwatch/erigon/rlp" ) // go:generate gencodec -type Receipt -field-override receiptMarshaling -out gen_receipt_json.go -//go:generate codecgen -o receipt_codecgen_gen.go -r "^Receipts$|^Receipt$|^Logs$|^Log$" -st "codec" -j=false -nx=true -ta=true -oe=false -d 2 receipt.go log.go + +// disabling codecgen generation since it does not work for go1.22 +// to get it working need to update github.com/ugorji/go/codec to v1.2.12 which has the fix: +// - https://github.com/ugorji/go/commit/8286c2dc986535d23e3fad8d3e816b9dd1e5aea6 +// however updating the lib has caused us issues in the past, and we don't have good unit test coverage for updating atm +// we also use this for storing Receipts and Logs in the DB - we won't be doing that in Erigon 3 +// do not regen, more context: https://github.com/ledgerwatch/erigon/pull/10105#pullrequestreview-2027423601 +// go:generate codecgen -o receipt_codecgen_gen.go -r "^Receipts$|^Receipt$|^Logs$|^Log$" -st "codec" -j=false -nx=true -ta=true -oe=false -d 2 receipt.go log.go var ( receiptStatusFailedRLP = []byte{}