Pull all vendor dependencies:
go mod vendor
Build app:
go build -o kvapp
Configure node first, all config and data files will go into the run/
folder.
mkdir -p run && cp -r sample/* run/
Then start the node:
./kvapp
You can now send transactions through the Tendermint API:
curl -s 'localhost:26657/broadcast_tx_commit?tx="tendermint=rocks"'
This one should fail, as the validate function expect transaction content to be of the form "key=value".
curl -s 'localhost:26657/broadcast_tx_commit?tx="tendermint"'
Replaying an old transaction should also fail:
curl -s 'localhost:26657/broadcast_tx_commit?tx="tendermint=rocks"'