Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

IGNORE: Stress testing E2E #237

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions block/proposals/update.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package proposals

import (
"encoding/base64"
"fmt"

"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
signerextraction "github.com/skip-mev/block-sdk/adapters/signer_extraction_adapter"
"github.com/skip-mev/block-sdk/block/utils"
)

Expand Down Expand Up @@ -41,21 +41,33 @@ func (p *Proposal) UpdateProposal(lane Lane, partialProposal []sdk.Tx) error {
partialProposalSize := int64(0)
partialProposalGasLimit := uint64(0)

signerAdapter := signerextraction.NewDefaultAdapter()

for index, tx := range partialProposal {
txInfo, err := utils.GetTxInfo(p.TxEncoder, tx)
if err != nil {
return fmt.Errorf("err retrieving transaction info: %s", err)
}

p.Logger.Debug(
feeTx := tx.(sdk.FeeTx)
signers, err := signerAdapter.GetSigners(tx)
if err != nil {
return fmt.Errorf("err retrieving signers: %s", err)
}

p.Logger.Info(
"updating proposal with tx",
"index", index,
"lane", lane.Name(),
"tx_hash", txInfo.Hash,
"tx_size", txInfo.Size,
"tx_gas_limit", txInfo.GasLimit,
"tx_bytes", txInfo.TxBytes,
"raw_tx", base64.StdEncoding.EncodeToString(txInfo.TxBytes),
// "tx_bytes", txInfo.TxBytes,
// "raw_tx", base64.StdEncoding.EncodeToString(txInfo.TxBytes),
"fee", feeTx.GetFee(),
"gas", feeTx.GetGas(),
"signer", signers[0].Signer.String(),
"nonce", signers[0].Sequence,
)

// invariant check: Ensure that the transaction is not already in the proposal.
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/block_sdk_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

var (
// config params
numValidators = 1
numValidators = 4
numFullNodes = 0
denom = "stake"

Expand All @@ -38,7 +38,7 @@ var (
}

consensusParams = ictestutil.Toml{
"timeout_commit": "3500ms",
"timeout_commit": "5000ms",
}

// interchain specification
Expand Down
Loading