EOS Authentication Discussion

Welcome to the thread about EOS Authenticaion. Here you can discuss everything about the authentication coding and potential problems that you might stumble upon.

richard@richard-ubuntu:~/eos/contracts/HelloWorld$ cleos set contract hello.code . HelloWorld.wast HelloWorld.abi -p hello.code
Reading WAST/WASM from HelloWorld.wast...
Assembling WASM...
Publishing contract...
Error 3040005: Expired Transaction
Please increase the expiration time of your transaction!
Error Details:
transaction has expired, expiration is 2018-06-04T20:14:20 and pending block time is 2018-06-05T02:07:22.500

I checked here but not helpful

It seems block are no longer being produced, in my console where I start the node, before there was a constant flow of blocks, now it is idle, I tried restarting the node but same result

Do you get any error messages or warnings when you start nodeos?

Not producing block because the irreversible block is too old [age:21568s, max:1800s]

I started over with --genesis-json richardgen.json --delete-all-blocks flags and is producing blocks now, other issues but will figure it out

Try to start nodeos with the flag --max-irreversible-block-age -1. I think this is fixed in version 1.0 if you want to update. But try the flag first and see if it works.

Looks like deleting the blocks made my accounts invalid, I created new accounts and was able to successfully complete this section.

I still show the old accounts locally, is there a way to manually push to the network? Or delete them? I am experimenting with cleos set account permission but having no luck

did not work with stalled chain or deleting blocks, I guess using a laptop has a disadvantage here, when I close the lid, it goes to sleep and stops producing and when I come back, it has timed out, but ok, since it is a learning environment

Have you tried the --replay-blockchain, or --hard-replay-blockchain?

It would be too late now if you deleted all the blocks, but I normally run those commands when upgrading and restarting nodeos. I wouldn’t ever run the --delete-all-blocks unless you want to go through a complete refresh, setup accounts and deploy contracts again, all data seems to get wiped with that command.

I will try on the next stall

1 Like

Yes, replay would be the correct way to restart your nodeos. I will add that in the lecture.

1 Like

Tried both, still get
Not producing block because the irreversible block is too old [age:55337s, max:1800s]

The answer to that is to add the –max-irreversible-block-age 999999999. Or another number that is higher than your block age. I’m not sure what the max is. I thought -1 would do the trick, but apparently not.