Skip to content

Commit

Permalink
Merge pull request #331 from Ethernal-Tech/LT-gossip-msg
Browse files Browse the repository at this point in the history
LT gossip msg size -> 16 MB
  • Loading branch information
oliverbundalo authored Aug 5, 2024
2 parents 784f0ed + 8e3e8ad commit 6546989
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
max_enqueued: "20000000"
is_london_fork_active: true
is_bridge_active: false
gossip_msg_size: "8388608"
gossip_msg_size: "16777216"
notification: false
secrets:
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
max_enqueued: "20000000"
is_london_fork_active: true
is_bridge_active: false
gossip_msg_size: "8388608"
gossip_msg_size: "16777216"
logs: true
build_blade_output: ${{ needs.ci.outputs.build_blade }}
lint_output: ${{ needs.ci.outputs.lint }}
Expand Down
10 changes: 0 additions & 10 deletions consensus/polybft/consensus_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -902,16 +902,6 @@ func (c *consensusRuntime) BuildPrePrepareMessage(
certificate *proto.RoundChangeCertificate,
view *proto.View,
) *proto.IbftMessage {
// Add debug log for cases when RCC is not nil
if certificate != nil {
c.logger.Debug("BuildPrePrepareMessage", "rawProposal length", len(rawProposal),
"certificate length", len(certificate.String()))

for i, rcMsg := range certificate.RoundChangeMessages {
c.logger.Debug("BuildPrePrepareMessage", "RC msg index", i, "RC msg length", len(rcMsg.String()))
}
}

if len(rawProposal) == 0 {
c.logger.Error("can not build pre-prepare message, since proposal is empty")

Expand Down
8 changes: 5 additions & 3 deletions gasprice/gasprice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import (
func TestGasHelper_MaxPriorityFeePerGas(t *testing.T) {
t.Parallel()

defaultGasPrice := DefaultGasHelperConfig.LastPrice

var cases = []struct {
Name string
Expected *big.Int
Expand Down Expand Up @@ -118,7 +120,7 @@ func TestGasHelper_MaxPriorityFeePerGas(t *testing.T) {
{
Name: "Number of blocks in chain smaller than numOfBlocksToCheck",
Expected: DefaultGasHelperConfig.LastPrice.Mul(
DefaultGasHelperConfig.LastPrice, big.NewInt(2)), // at least two times of default last price
defaultGasPrice, big.NewInt(2)), // at least two times of default last price
GetBackend: func() Blockchain {
backend := createTestBlocks(t, 10)
createTestTxs(t, backend, 3, 200)
Expand All @@ -129,7 +131,7 @@ func TestGasHelper_MaxPriorityFeePerGas(t *testing.T) {
{
Name: "Number of blocks in chain higher than numOfBlocksToCheck",
Expected: DefaultGasHelperConfig.LastPrice.Mul(
DefaultGasHelperConfig.LastPrice, big.NewInt(2)), // at least two times of default last price
defaultGasPrice, big.NewInt(2)), // at least two times of default last price
GetBackend: func() Blockchain {
backend := createTestBlocks(t, 30)
createTestTxs(t, backend, 3, 200)
Expand All @@ -140,7 +142,7 @@ func TestGasHelper_MaxPriorityFeePerGas(t *testing.T) {
{
Name: "Not enough transactions in first 20 blocks, so read some more blocks",
Expected: DefaultGasHelperConfig.LastPrice.Mul(
DefaultGasHelperConfig.LastPrice, big.NewInt(2)), // at least two times of default last price
defaultGasPrice, big.NewInt(2)), // at least two times of default last price
GetBackend: func() Blockchain {
backend := createTestBlocks(t, 50)
createTestTxs(t, backend, 1, 200)
Expand Down
2 changes: 1 addition & 1 deletion network/gossip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func WaitForSubscribers(ctx context.Context, srv *Server, topic string, expected
}

func TestSimpleGossip(t *testing.T) {
numServers := 9
numServers := 8
sentMessage := fmt.Sprintf("%d", time.Now().UTC().Unix())

servers, createErr := createServers(numServers, nil)
Expand Down

0 comments on commit 6546989

Please sign in to comment.