I have a simple smart contract that I deploy to my own geth node and it works fine but the problem is when I close the geth console and start it again I have to redeply the smart contracts again Here is the code I am using to start the geth node
geth --port 3001 --networkid 5777 --datadir=./node1 --maxpeers=50 --rpc --rpcport 8545 --rpca ddr 127.0.0.1 --rpccorsdomain "http://localhost:3000" --rpcapi "eth,net,web3,personal,miner" --allow-insecure-unlock con sole 2>>eth.log --mine --miner.gasprice 0 --syncmode 'full'
Am I missing something ?????
EDIT: It is a SimpleStorage Contract, I can get the value after restarting the node but when I try to set it , it doesn't work
EDIT2: I tried using ganach and it worked perfectly as expected, So I am almost certain that I have a problem with geth