Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanYuan committed Jul 17, 2024
1 parent d804ee9 commit b6d1aae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Branch Chain

A branch chain is a BTC Layer-2 chain that actually runs smart contracts. It is characterized by high TPS (Transactions Per Second), low fees, fewer block-producing nodes, and a challenge-based security model.
A Branch Chain is a BTC Layer-2 chain that actually runs smart contracts. It is characterized by high TPS (Transactions Per Second), low fees, fewer block-producing nodes, and a challenge-based security model.

For more information, see the [branch chain](https://github.com/ckb-cell/utxo-stack-doc/blob/master/docs/branch-chain.md).

## Features

- Compatible with RGB++ layer smart contracts
- BTC as cell capacity token, 1 satoshi can be used for 1 byte of on-chain space
- Single sequencer
- Blocks produced every 2 seconds
Expand Down Expand Up @@ -56,7 +57,9 @@ hash_type = "type"
message = "0x"
```

The `args` value in the `block_assembler` configuration is directly taken from the `args` specified in the `lock script` of a pre-defined cell in the genesis configuration (`[genesis.issued_cells]`). This allows for a simplified setup, as you can reuse the existing parameters from the development chain's specification.
The `args` value in the `block_assembler` configuration is directly taken from the `args` specified in the `lock script` of a pre-defined cell in the genesis configuration (`[genesis.issued_cells]`).

In the genesis block, there are two `issued_cells` with sufficient capacity representing BTC. For more details, see the [genesis configuration](/resource/specs/dev.toml).

**Please NOTE that this setup is intended for testing purposes only and should not be used in a production environment.**

Expand Down
2 changes: 0 additions & 2 deletions spec/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ use std::cmp;
use std::collections::HashMap;
use std::sync::Arc;

// 1.344 billion per year
pub(crate) const DEFAULT_SECONDARY_EPOCH_REWARD: Capacity = Capacity::shannons(0);
// 4.2 billion per year
pub(crate) const INITIAL_PRIMARY_EPOCH_REWARD: Capacity = Capacity::shannons(0);
const MAX_UNCLE_NUM: usize = 2;
pub(crate) const TX_PROPOSAL_WINDOW: ProposalWindow = ProposalWindow(1, 1);
Expand Down

0 comments on commit b6d1aae

Please sign in to comment.