Skip to content

Commit

Permalink
By default, allow processing. Add command to fund faucet.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed May 20, 2024
1 parent 9b4d28f commit ac17409
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions process/block/preprocess/sovereignChainTransactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type sovereignChainTransactions struct {
func NewSovereignChainTransactionPreprocessor(
transactions *transactions,
) (*sovereignChainTransactions, error) {
ShouldProcess.Store(true)

if transactions == nil {
return nil, process.ErrNilPreProcessor
}
Expand Down
2 changes: 2 additions & 0 deletions scripts/benchmark/fund_faucet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mxpy tx new --proxy=http://localhost:7950 --pem=~/MultiversX/testnet/filegen/output/walletKey.pem --recall-nonce --gas-limit=50000 --value=100000000000000000000 \
--receiver=erd1sjs26q5pmngu7qjnpkcqgstdppvqul7vdqa0cru5ae5axkq37czqndz3vp --send
10 changes: 3 additions & 7 deletions scripts/benchmark/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Transaction, TransactionComputer,
TransactionsFactoryConfig, UserPEM, UserSigner)

CHAIN_ID = "local-testnet"
CHAIN_ID = "S"


def main(cli_args: List[str]):
Expand Down Expand Up @@ -51,18 +51,14 @@ def broadcast_command(data: bytes):
sign_transaction(transaction, alice_signer)
broadcast_transaction(transaction)

num_accounts = 24
txs_per_account = 50000
num_accounts = 4
txs_per_account = 100
max_transactions_per_block = 80000
max_batch_size_per_participant = int(max_transactions_per_block / num_accounts)

data = "ext_run_scenario_move_balances@{:08x}@{:08x}@{:08x}@{:08x}".format(num_accounts, txs_per_account, max_transactions_per_block, max_batch_size_per_participant).encode()
broadcast_command(data)


def my_hex(value: int):
return '{:08x}'.format(value)


if __name__ == "__main__":
main(sys.argv[1:])

0 comments on commit ac17409

Please sign in to comment.