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

Bundle wont happend when using DatabaseMempool #230

Closed
zsluedem opened this issue Oct 18, 2023 · 1 comment · Fixed by #247
Closed

Bundle wont happend when using DatabaseMempool #230

zsluedem opened this issue Oct 18, 2023 · 1 comment · Fixed by #247
Labels
T-bug Type: Something isn't working
Milestone

Comments

@zsluedem
Copy link
Collaborator

how to reproduce

  1. geth
    --http
    --http.api personal,eth,net,web3,debug
    --allow-insecure-unlock
    --rpc.allow-unprotected-txs
    --http.vhosts ',localhost,host.docker.internal'
    --http.corsdomain '
    '
    --http.addr "0.0.0.0"
    --dev
    --dev.period 0
    --nodiscover --maxpeers 0
    --verbosity 4
  2. git clone https://github.com/eth-infinitism/account-abstraction.git && cd account-abstraction && npx hardhat deploy --network dev
  3. geth --exec "eth.sendTransaction({from: eth.accounts[0], to: "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", value: web3.toWei(10000, "ether")})" attach http://localhost:8545 // 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266 is the address by "test test test test test test test test test test test junk"
  4. geth --exec "eth.sendTransaction({from: eth.accounts[0], to: "0x793c9c5d01aa56fef7f39bfc05256486f9deb1b0", value: web3.toWei(10000, "ether")})" attach http://localhost:8545 // 0x793c9c5d01aa56fef7f39bfc05256486f9deb1b0 is the simple account signed by 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
  5. cargo run cargo run -- bundler --eth-client-address http://localhost:8545 --mnemonic-file /path/to/aa-bundler/bundler-spec-tests/keys/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --beneficiary 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --entry-points 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789 --http --http.port 4000 --eth-client-proxy-address http://localhost:8545
  6. BUNDLER_URL="http://localhost:4000" SEED_PHRASE="test test test test test test test test test test test junk" cargo run --package silius-examples --example simple-account-create

You can see the log never bundle one. I changed the mempool from database to mempool and it worked. There must be a bug for database mempool. More specifically, the get_sorted_user_operations return from the uopool is empty when trying to bundle.

@zsluedem zsluedem added the T-bug Type: Something isn't working label Oct 18, 2023
@zsluedem zsluedem added this to the v0.4.0-alpha milestone Oct 18, 2023
@zsluedem
Copy link
Collaborator Author

zsluedem commented Oct 20, 2023

Sending userop without initcode is actually working. Wired bug. Could not find anything useful and reproduce it from tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant