Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add xudt as system_cells #10

Merged
Merged
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion resource/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ use ckb_system_scripts::{
fn main() {
let mut bundled = includedir_codegen::start("BUNDLED");

for f in &["ckb.toml", "ckb-miner.toml", "default.db-options"] {
for f in &[
"ckb.toml",
"ckb-miner.toml",
"default.db-options",
"xudt_rce",
] {
bundled
.add_file(f, Compression::Gzip)
.expect("add files to resource bundle");
Expand Down
4 changes: 4 additions & 0 deletions resource/specs/dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ capacity = 1_048_617_0000_0000
file = { bundled = "specs/cells/secp256k1_blake160_multisig_all" }
create_type_id = true
capacity = 100_000_0000_0000
[[genesis.system_cells]]
file = { bundled = "xudt_rce" }
create_type_id = true
capacity = 1_0000_0000

[genesis.system_cells_lock]
code_hash = "0x0000000000000000000000000000000000000000000000000000000000000000"
Expand Down
Binary file added resource/xudt_rce
Binary file not shown.
2 changes: 1 addition & 1 deletion spec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub const OUTPUT_INDEX_SECP256K1_DATA: u64 = 3;
/// The output index of SECP256K1/multisig script in the genesis no.0 transaction
pub const OUTPUT_INDEX_SECP256K1_BLAKE160_MULTISIG_ALL: u64 = 4;
/// The output index of Token Manager script in the genesis no.0 transaction
pub const OUTPUT_INDEX_TOKEN_MANAGER: u64 = 8;
pub const OUTPUT_INDEX_TOKEN_MANAGER: u64 = 9;

/// The CKB block chain specification
#[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
Expand Down
Loading