diff --git a/docs/guide/basecoin-basics.md b/docs/guide/basecoin-basics.md index fb2e50291f..c2b974df93 100644 --- a/docs/guide/basecoin-basics.md +++ b/docs/guide/basecoin-basics.md @@ -111,7 +111,7 @@ type Coin struct { Accounts are serialized and stored in a Merkle tree under the key `base/a/
`, where `
` is the address of the account. Typically, the address of the account is the 20-byte `RIPEMD160` hash of the public key, but other formats are acceptable as well, -as defined in the [tendermint crypto library](https://github.com/tendermint/go-crypto). +as defined in the [Tendermint crypto library](https://github.com/tendermint/go-crypto). The Merkle tree used in Basecoin is a balanced, binary search tree, which we call an [IAVL tree](https://github.com/tendermint/go-merkle). ## Transactions @@ -150,8 +150,8 @@ This is slightly different from Ethereum's concept of `Gas` and `GasPrice`, where `Fee = Gas x GasPrice`. In Basecoin, the `Gas` and `Fee` are independent, and the `GasPrice` is implicit. -In Tendermint, the `Fee` is meant to be used by the validators to inform the ordering -of transactions, like in bitcoin. And the `Gas` is meant to be used by the application +In Basecoin, the `Fee` is meant to be used by the validators to inform the ordering +of transactions, like in Bitcoin. And the `Gas` is meant to be used by the application plugin to control its execution. There is currently no means to pass `Fee` information to the Tendermint validators, but it will come soon... diff --git a/docs/guide/basecoin-plugins.md b/docs/guide/basecoin-plugins.md index cc78d246ae..4e1c2251c1 100644 --- a/docs/guide/basecoin-plugins.md +++ b/docs/guide/basecoin-plugins.md @@ -144,7 +144,7 @@ to whatever your plugin tool is going to be called. Next is the `cmd.go`. This is where we extend the tool with any new commands and flags we need to send transactions to our plugin. Note the `init()` function, where we register a new transaction subcommand with `RegisterTxSubcommand`, -and where we load the plugin into the basecoin app with `RegisterStartPlugin`. +and where we load the plugin into the Basecoin app with `RegisterStartPlugin`. Finally is the `plugin.go`, where we provide an implementation of the `Plugin` interface. The most important part of the implementation is the `RunTx` method, which determines the meaning of the data