IntersectMBO / cardano-node

The core component that is used to participate in a Cardano decentralised blockchain.
https://cardano.org
Apache License 2.0
3.06k stars 723 forks source link

[BUG] - cardano-testnet: Hydra InitTx stays forever in the mempool #5989

Open errfrom opened 1 week ago

errfrom commented 1 week ago

I'm attempting to run a Hydra Head against a cardano-testnet cluster. The InitTx, posted by the hydra-node, appears in the mempool of each cardano-node but is never included in a block and therefore is not observed by the Hydra Head participants.

cardano-node version:

cardano-node 9.2.0 - linux-x86_64 - ghc-8.10
git rev 341ea87ba3b4936188f8c2d4f09bbf1976a7926e

hydra-node version:

0.19.0-1ffe7c6b505e3f38b5546ae5e5b97de26bc70425

hydra-node logs:

[TRACE] 2024-09-19T13:39:00.366Z [hydra-node:stdout] {"timestamp":"2024-09-19T13:39:00.365940789Z","threadId":69,"namespace":"HydraNode-\"0\"","message":{"node":{"by":{"vkey":"c4763449a1132278d290a3b9098e523ebce97a7b34fbbaf68da6b3c9f67f9c44"},"input":{"clientInput":{"tag":"Init"},"tag":"ClientInput"},"inputId":3,"tag":"BeginInput"},"tag":"Node"}}
{"timestamp":"2024-09-19T13:39:00.365943069Z","threadId":69,"namespace":"HydraNode-\"0\"","message":{"node":{"by":{"vkey":"c4763449a1132278d290a3b9098e523ebce97a7b34fbbaf68da6b3c9f67f9c44"},"outcome":{"effects":[{"postChainTx":{"headParameters":{"contestationPeriod":60,"parties":[{"vkey":"c4763449a1132278d290a3b9098e523ebce97a7b34fbbaf68da6b3c9f67f9c44"}]},"participants":["c9b3993947f87c9f62c64692a453c36802b0bd55075b0e638d899901"],"tag":"InitTx"},"tag":"OnChainEffect"}],"stateChanges":[],"tag":"Continue"},"tag":"LogicOutcome"},"tag":"Node"}}

[TRACE] 2024-09-19T13:39:00.426Z [hydra-node:stdout] {"timestamp":"2024-09-19T13:39:00.425855035Z","threadId":62,"namespace":"HydraNode-\"0\"","message":{"directChain":{"tag":"PostingTx","txId":"9b084493d76a8858e226e950d64f400a2add770694b7a07f0624b678cde96019"},"tag":"DirectChain"}}

[TRACE] 2024-09-19T13:39:00.427Z [hydra-node:stdout] {"timestamp":"2024-09-19T13:39:00.427813206Z","threadId":62,"namespace":"HydraNode-\"0\"","message":{"directChain":{"tag":"PostedTx","txId":"9b084493d76a8858e226e950d64f400a2add770694b7a07f0624b678cde96019"},"tag":"DirectChain"}}

cardano-cli queries:

cardano-cli query tx-mempool next-tx --socket-path=/tmp/nix-shell.q6PV0b/hfkga7fmm19c7jj4-cardano-testnet/testnet-test-135aad6a1c8f9f46/socket/pool1/sock --testnet-magic=2
{
    "nextTx": "9b084493d76a8858e226e950d64f400a2add770694b7a07f0624b678cde96019",
    "slot": 1118
}

cardano-cli query utxo --whole-utxo --socket-path=/tmp/nix-shell.q6PV0b/hfkga7fmm19c7jj4-carrdano-testnet/testnet-test-135aad6a1c8f9f46/socket/pool1/sock --testnet-magic=2 | grep 9b084493d76a8858e226e950d64f400a2add770694b7a07f0624b678cde96019
**No output**
carbolymer commented 1 week ago

Can you provide the reproduction steps?