mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
feat: v0.34.x Prioritized Mempool (#8695)
* Updated mocks * add reactor tests * add v1 reactor tests * Fix fuzz test for priority mempool * e2e adapted to mempool v1; prio pool is default now * Reverted default mempool to be fifo * Changed buf version * Added priority mempool to ci testnet * Fixed linter * Updated makefile * Aligned makefile changes to v0.34.x * Added go install for proto * Add log message to warn about prioritized mempool bug Signed-off-by: Thane Thomson <connect@thanethomson.com> * Changelog message Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com> Co-authored-by: Callum Waters <cmwaters19@gmail.com> Co-authored-by: Sam Kleinman <garen@tychoish.com> Co-authored-by: Thane Thomson <connect@thanethomson.com>
This commit is contained in:
committed by
GitHub
parent
25101d1116
commit
6b7d30cf37
23
mempool/ids_test.go
Normal file
23
mempool/ids_test.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package mempool
|
||||
|
||||
// import (
|
||||
// "testing"
|
||||
|
||||
// "github.com/stretchr/testify/require"
|
||||
// "github.com/tendermint/tendermint/types"
|
||||
// )
|
||||
|
||||
// func TestMempoolIDsBasic(t *testing.T) {
|
||||
// ids := NewMempoolIDs()
|
||||
|
||||
// peerID, err := types.NewNodeID("0011223344556677889900112233445566778899")
|
||||
// require.NoError(t, err)
|
||||
|
||||
// ids.ReserveForPeer(peerID)
|
||||
// require.EqualValues(t, 1, ids.GetForPeer(peerID))
|
||||
// ids.Reclaim(peerID)
|
||||
|
||||
// ids.ReserveForPeer(peerID)
|
||||
// require.EqualValues(t, 2, ids.GetForPeer(peerID))
|
||||
// ids.Reclaim(peerID)
|
||||
// }
|
||||
Reference in New Issue
Block a user