Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No transactions logged on forked network #130

Open
Silur opened this issue Feb 8, 2023 · 3 comments
Open

No transactions logged on forked network #130

Silur opened this issue Feb 8, 2023 · 3 comments

Comments

@Silur
Copy link

Silur commented Feb 8, 2023

Running the following experiment on a truffle project:

etheno --ganache --ganache-args="ganache -f 'https://bsc-dataseed1.defibit.io/' -e 10000" -x init.json

Then running migrations and tests using truffle in another terminal:

truffle test test/test1.js #truffle is using the ganache network above

these successfully migrate and pass, generating quite some transactions and even awaiting the receipts.
However, no matter what transactions are made on ganache forked networks, init.json always only contains the initial account setups:

[
{"event": "AccountCreated", "address": "5409ed021d9299bf6814279a6a1411a7e866a631"},
{"event": "AccountCreated", "address": "6ecbe1db9ef729cbe972c83fb886247691fb6beb"},
{"event": "AccountCreated", "address": "e36ea790bc9d7ab70c55260c66d52b1eca985f84"},
{"event": "AccountCreated", "address": "e834ec434daba538cd1b9fe1582052b880bd7e63"},
{"event": "AccountCreated", "address": "78dc5d2d739606d31509c31d654056a45185ecb6"},
{"event": "AccountCreated", "address": "a8dda8d7f5310e4a9e24f8eba77e091ac264f872"},
{"event": "AccountCreated", "address": "06cef8e666768cc40cc78cf93d9611019ddcb628"},
{"event": "AccountCreated", "address": "4404ac8bd8f9618d27ad2f1485aa1b2cfd82482d"},
{"event": "AccountCreated", "address": "7457d5e02197480db681d3fdf256c7aca21bdc12"},
{"event": "AccountCreated", "address": "91c987bf62d25945db517bdaa840a6c661374402"}
]
@anishnaik
Copy link
Contributor

Hey @Silur thank you for reporting this issue. Unfortunately, I am going off the grid for the next week or so but I can help triage after that. Appreciate your patience.

@Silur
Copy link
Author

Silur commented Feb 22, 2023

update, no transactions are logged at all, independent of whether using truffle, hardhat, or manual transaction sending to either a forked a normal etheno --ganache invocation. init.json always only contains the 10 addresses set by ganache, irrespective to what is happening on the local network

However, if used by connecting etheno into a separate ganache instance, everything works

#terminal 1 
ganache --gasLimit=0x1fffffffffffff --chain.allowUnlimitedContractSize -e 1000000000

#terminal 2
etheno http://127.0.0.1:8545 -p 8546 -x init.json

Pointing truffle/hardhat to port 8546 will generate the desired transactions into init.json

@anishnaik
Copy link
Contributor

anishnaik commented Mar 22, 2023

Hey @Silur, just coming back to this.

So with regards to your original comment on grabbing transactions from forked networks, does your truffle config point to port 8546 or 8545? Note that etheno runs on 8546 and sending messages to port 8545 will prevent etheno from logging them.

Etheno basically acts like a proxy between your RPC request and the ganache instance. Thus the flow of data is hardhat/truffle -> etheno -> ganache. It seems like you identified this based on your second comment but was wondering if that fixed all your issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants