Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Feb 29, 2024
1 parent da60882 commit b021bef
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion loadtest/helpers/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function fundTestAccounts(client, root_address) {

// fund the VUs accounts
for (let i = 0; i < exec.instance.vusInitialized; i++) {
var tacc = wallet.generateKey();
var tacc = wallet.generateKey();
accounts[i] = {
private_key: tacc.private_key,
address: tacc.address,
Expand Down
2 changes: 1 addition & 1 deletion loadtest/scenarios/multiple_EOA.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function (data) {
const tx = {
to: "0xDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF",
value: Number(0.00000001 * 1e18),
gas_price: client.gasPrice(),
gas_price: client.gasPrice()*1.5,
nonce: userData.nonce,
};

Expand Down
4 changes: 2 additions & 2 deletions loadtest/scenarios/multiple_ERC20.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export default function (data) {

console.log(acc.address);
const con = client.newContract(data.contract_address, JSON.stringify(ZexCoin.abi));
const res = con.txn("transfer", { gas_limit: 100000, nonce: acc.nonce }, acc.address, 1);
console.log(`txn hash => ${res}`);
const res = con.txn("transfer", { gas_limit: 100000, nonce: acc.nonce, gas_price: client.gasPrice()*1.8 }, acc.address, 1);
console.log("sender => " + acc.address + " tx hash => " + res + " nonce => " + acc.nonce);

acc.nonce++;
// console.log(JSON.stringify(con.call("balanceOf", acc.address)));
Expand Down
7 changes: 1 addition & 6 deletions txpool/txpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -925,12 +925,7 @@ func (p *TxPool) handlePromoteRequest(req promoteRequest) {
// addGossipTx handles receiving transactions
// gossiped by the network.
func (p *TxPool) addGossipTx(obj interface{}, peerID peer.ID) {
if !p.sealing.Load() {
return
}

// ignore txs gossiped by the node itself
if p.localPeerID == peerID {
if !p.sealing.Load() || p.localPeerID == peerID {
return
}

Expand Down

0 comments on commit b021bef

Please sign in to comment.