mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 18:42:19 +00:00
persistence
This commit is contained in:
parent
5f3c7beca3
commit
33c60ecea8
@ -128,6 +128,8 @@ func NewSendersCache() *SendersCache {
|
|||||||
senderInfo: map[uint64]*senderInfo{},
|
senderInfo: map[uint64]*senderInfo{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint
|
||||||
func (sc *SendersCache) printDebug(prefix string) {
|
func (sc *SendersCache) printDebug(prefix string) {
|
||||||
fmt.Printf("%s.SendersCache.senderInfo\n", prefix)
|
fmt.Printf("%s.SendersCache.senderInfo\n", prefix)
|
||||||
for i, j := range sc.senderInfo {
|
for i, j := range sc.senderInfo {
|
||||||
@ -475,6 +477,7 @@ func New(newTxs chan Hashes, db kv.RwDB) (*TxPool, error) {
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint
|
||||||
func (p *TxPool) printDebug(prefix string) {
|
func (p *TxPool) printDebug(prefix string) {
|
||||||
fmt.Printf("%s.pool.byHash\n", prefix)
|
fmt.Printf("%s.pool.byHash\n", prefix)
|
||||||
for _, j := range p.byHash {
|
for _, j := range p.byHash {
|
||||||
|
@ -489,6 +489,7 @@ func bytesToUint64(buf []byte) (x uint64) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint
|
||||||
func (tx *TxSlot) printDebug(prefix string) {
|
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,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)
|
//fmt.Printf("%s: senderID=%d,nonce=%d,tip=%d,hash=%x\n", prefix, tx.senderID, tx.nonce, tx.tip, tx.idHash)
|
||||||
|
Loading…
Reference in New Issue
Block a user