Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 786 Bytes

readme.md

File metadata and controls

47 lines (31 loc) · 786 Bytes

Tendermint Built-in KVStore app

Install & build

Pull all vendor dependencies:

go mod vendor

Build app:

go build -o kvapp

Run

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"'