-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
txnprovider/txpool: move more txpool types out of erigon-lib #12725
Conversation
@@ -150,106 +144,3 @@ func (mf MergedFiles) Close() { | |||
} | |||
} | |||
} | |||
|
|||
func DecodeAccountBytes(enc []byte) (nonce uint64, balance *uint256.Int, hash []byte) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused code
return | ||
} | ||
|
||
func EncodeAccountBytes(nonce uint64, balance *uint256.Int, hash []byte, incarnation uint64) []byte { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused code
import ( | ||
"github.com/holiman/uint256" | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved back inside relevant tests that are using it in txnprovider/txpool
// nolint | ||
func (tx *TxSlot) PrintDebug(prefix string) { | ||
fmt.Printf("%s: senderID=%d,nonce=%d,tip=%d,v=%d\n", prefix, tx.SenderID, tx.Nonce, tx.Tip, tx.Value.Uint64()) | ||
//fmt.Printf("%s: senderID=%d,nonce=%d,tip=%d,hash=%x\n", prefix, tx.senderID, tx.nonce, tx.tip, tx.IdHash) | ||
} | ||
|
||
// AccessList is an EIP-2930 access list. | ||
type AccessList []AccessTuple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to core/types alongside AccessListTx
|
||
// This test actually applies to testing the behaviour as seen from the | ||
// onNewTx behaviour in filters.go | ||
func TestShortUnwrapLib(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test and TestShortUnwrap
are 1:1 the same now
@@ -738,89 +734,21 @@ func TestBlobTxEncodeDecode(t *testing.T) { | |||
} | |||
} | |||
|
|||
func makeBlobTxRlp() []byte { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to core/types/typestest pkg
move last bits of txpool related types out of erigon-lib in subsequent PRs will further split and organise some of these into better packages
relates to #13377
move last bits of txpool related types out of erigon-lib
in subsequent PRs will further split and organise some of these into better packages