Skip to content

Commit ff1d9b1

Browse files
authored
refactor(genesis): reset testnet genesis (#2983)
* refactor(genesis): reset testnet genesis 1. block height: 2902859 -> 3516999 2. regenerate genesis file reset steps: 1. stop testnet 2. clear roochdb directory 3. deploy testnet and restart
1 parent 1e97f91 commit ff1d9b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/rooch-genesis/released/test

543 Bytes
Binary file not shown.

crates/rooch-types/src/genesis_config.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ pub static G_DEV_CONFIG: Lazy<GenesisConfig> = Lazy::new(|| GenesisConfig {
141141
stdlib_version: StdlibVersion::Latest,
142142
});
143143

144-
//curl -sSL "https://mempool.space/testnet/api/block/$(curl -sSL https://mempool.space/testnet/api/block-height/2902859)/header"
144+
// curl -sSL "https://mempool.space/testnet/api/block/$(curl -sSL https://mempool.space/testnet/api/block-height/3516999)/header"
145145
static TESTNET_GENESIS_HEIGHT_HEADER: Lazy<(u64, Header)> = Lazy::new(|| {
146-
(2902859, bitcoin::consensus::deserialize(
147-
&hex::decode("000000207a518c54d035787e573beab94dcaa241116629f2d1b578fc6e4bcbbc000000001cb54b96888834d31e7418652c0e6ddeeee956b4b261766d92d5ff59d030ea52fdc2d766c0ff3f19b8051295")
146+
(3516999, bitcoin::consensus::deserialize(
147+
&hex::decode("0040f820bdd09b73d27b8896ad05d8f85f585f74d055eb1e180661a21300000000000000bf4496f10066f75f9b9ee1f37abeb730101cabca6745567bafabc1023e45c039f8474c67005c401920f0be85")
148148
.expect("Should be valid"),
149149
).expect("Should be valid"))
150150
});

0 commit comments

Comments
 (0)