Cannot Withdraw Rewards cardano-node 9.1.1

Hello,

I have upgraded to cardano-node 9.1.1 from 8.9.4 and things appear to be working as expected. The core/block node is processing transactions and my relay (also 9.1.1) is online processing transactions. My setup is using the Guild Operators scripts (Guild Operators). I upgraded to 9.1.1 based on the “hotfix” because a full chain replay was needed every time a node was restarted (Release 9.1.1 · IntersectMBO/cardano-node · GitHub).

What the issue is when I try to withdraw our stake pool rewards using the coin cashew guide it fails on the last step when I go to submit the transaction. (https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node/part-iv-administration/claiming-stake-pool-rewards)

cardano-cli transaction submit \
    --tx-file tx.signed \
    --mainnet

Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraConway (ApplyTxError (ConwayUtxowFailure (UtxoFailure (FeeTooSmallUTxO (Coin 171529) (Coin 171177))) :| []))

My config files have also been updated on both the relay and block nodes. Any ideas on what could be the issue here?

Thanks!

As you can see in the error message, the fee is too small. You should pay 171529 lovelaces instead of 171177 as you transaction is trying. The fees have changed with the Conway hard fork. You probably did not update all the components on the machine where you are building the transaction.

I see. I took your advice and redid the upgrade for 9.1.1 using cntools/Guild Operators and I am still getting the same above error. I even forced the overwrite of the config files to make sure I didn’t miss anything. Still getting the same error when attempting to withdraw rewards. The coin cashew guide step where you get the fee produces the same fee of 171177.

I should mention that I did not perform upgrades prior to the Conway hard fork. Would that cause issues? Its strange to me that a complete upgrade on a core node is not pulling in the correct fee using this command:

fee=$(cardano-cli transaction calculate-min-fee \
    --tx-body-file tx.tmp \
    --tx-in-count ${txcnt} \
    --tx-out-count 1 \
    --mainnet \
    --witness-count 2 \
    --byron-witness-count 0 \
    --protocol-params-file params.json | awk '{ print $1 }')
echo fee: $fee
# Output 171177
1 Like

Check which cardano-cli is used, if it is the one installed by the upgrade, which version it is.

cardano-cli is rhe program doing the fee estimation and it may well be that there is an old one in your $PATH that is being used.

My cardano-cli version:

cardano-cli 9.2.1.0 - linux-x86_64 - ghc-8.10
git rev efd560070aaf042d1eb4680ae37fc607c7742319

I also just tried upgrading to the newest 9.3.0.0 and that still gave the same results.

I just tried updating the params.json file using this command:

cardano-cli query protocol-parameters \
    --mainnet \
    --out-file params.json

I still get the same FeeTooSmallUTxO error.

cardano-cli transaction submit \
    --tx-file tx.signed \
    --mainnet
Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraConway (ApplyTxError (ConwayUtxowFailure (UtxoFailure (FeeTooSmallUTxO (Coin 171529) (Coin 171177))) :| []))

Hello everyone,
I am also having issue .
I staked my ada tokens to Emurgo pool and later moved to Bravo pool but I am unable to unstake my tokens. I can see the total delegated and received the total rewards but I want to withdraw my tokens . In assets I am not able to see the Fingerprint address. I am using Yoroi wallet. Please help me

This is the stake pool operation forum. For wallet support refer to Community Technical Support - Cardano Forum

I’m having the issue, it calculates the fee at 171177 no matter what.

Generally the cardano-cli developers will insist this is a problem not padding the transaction calculate-min-fee with values high enough to allow space on the chain for the real values that you build into the real transaction:

From my experience with Upgrading via cntools. You still need to use the scripts provided by IOHK to solve for transaction issues and node synchronization issues.

So install as described on the website, but grab the IOHK config files for 9.1.1 before running the node.

Here’s the link:

https://book.play.dev.cardano.org/environments.html

Please consider supporting my pool: SSX

I tried with fee 0, fee 171177 and fee 171529 (which is the value the error code was giving me) but the result its the same. The fee still gets calculated at 171177.

I’m running cardano-node 9.1.1 and cardano-cli 9.3.0.0

image

Try setting --fee to 300000 in the dummy transaction and then see what happens… (p.s. and what @HeptaSean suggests below would serve the same purpose)

What happens when you set the --tx-out to a realistic value instead of +0?

Same issue, but now the fee calculated is different at 171353 which is going to fail as well because its not 171529.

This can’t be the same issue as the one reported in July because I only started to have this problem once I upgraded to 9.1.1

image

1 Like

@stvoffutt I finally figured it out! (well it was actually @ATADA :wink:) and also thanks to everyone else that helped me understand the issue in the Cardano Stake Pool Best Practice Workgroup telegram channel. :mechanical_arm:

Basically with the hard fork the way to calculate the fee was changed to be more precise. That’s why putting fee 0 doesn’t work any more. But also you need to provide a realistic value to the --tx-out which in my case was 50k ada. So in my case I used --fee 200000 and --tx-out $(cat payment.addr)+50000000000 this way it calculated the correct fee at 171529 :ok_hand:

image

Cheers

3 Likes

You rock! Thank you so much! That worked for me.

1 Like