Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions sdk/next/experimental/blockstm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

## Background

Block-STM is an algorithm originally published in the [Block-STM paper](https://arxiv.org/pdf/2203.06871) and implemented for the Aptos blockchain. The algorithm was then written for Cosmos SDK compatible chains in Go by developers for the Cronos blockchain in [go-block-stm](https://github.com/crypto-org-chain/go-block-stm).

Check warning on line 22 in sdk/next/experimental/blockstm.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cosmos-docs) - vale-spellcheck

sdk/next/experimental/blockstm.mdx#L22

Did you really mean 'Aptos'?

Check warning on line 22 in sdk/next/experimental/blockstm.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cosmos-docs) - vale-spellcheck

sdk/next/experimental/blockstm.mdx#L22

Did you really mean 'blockchain'?

Check warning on line 22 in sdk/next/experimental/blockstm.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cosmos-docs) - vale-spellcheck

sdk/next/experimental/blockstm.mdx#L22

Did you really mean 'Cronos'?

Check warning on line 22 in sdk/next/experimental/blockstm.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cosmos-docs) - vale-spellcheck

sdk/next/experimental/blockstm.mdx#L22

Did you really mean 'blockchain'?

This library was forked and directly integrated into the Cosmos SDK with accompanying changes to the `baseapp` and `store` packages. Subsequent changes and improvements have been made on top of the original implementation to further optimize performance in both memory and time.

Expand Down Expand Up @@ -128,7 +128,7 @@

### Full Wiring Example

Here is a complete example taken from the Cosmos EVM's `evmd` application:

Check warning on line 131 in sdk/next/experimental/blockstm.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cosmos-docs) - vale-spellcheck

sdk/next/experimental/blockstm.mdx#L131

Did you really mean 'EVM's'?

```go
bApp.SetBlockSTMTxRunner(txnrunner.NewSTMRunner(
Expand All @@ -146,14 +146,6 @@

Work has already been done within the SDK and Cosmos EVM for common transaction types such as bank sends and EVM gas sends. The following steps describe the additional configuration needed.

### Disable the Block Gas Meter

The block gas meter is difficult to support when executing transactions in parallel. Disabling it is safe if validators validate the total gas wanted in `ProcessProposal`, which is the case in the default handler.

```go
bApp.SetDisableBlockGasMeter(true)
```

### Enable Virtual Fee Collection (EVM-specific)

This alters how fee collection works for EVM transactions, accumulating fees to the fee collector module in the `EndBlocker` instead of using regular sends during transaction execution.
Expand Down