mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
feat: commit production Stacks 1.0 chainstate.txt as of block 653759
This commit is contained in:
@@ -214,10 +214,17 @@ impl StacksChainState {
|
||||
) {
|
||||
clarity_tx
|
||||
.with_clarity_db(|ref mut db| {
|
||||
let balance = STXBalance::initial(amount);
|
||||
let mut balance = STXBalance::initial(amount);
|
||||
let total_balance = balance.get_total_balance();
|
||||
|
||||
let mut snapshot = db.get_stx_balance_snapshot_genesis(principal);
|
||||
let existing_balance = snapshot.balance().amount_unlocked;
|
||||
if existing_balance > 0 {
|
||||
balance.amount_locked = balance
|
||||
.amount_locked
|
||||
.checked_add(existing_balance)
|
||||
.expect("Genesis credit balance overflow");
|
||||
}
|
||||
snapshot.set_balance(balance);
|
||||
snapshot.save();
|
||||
|
||||
|
||||
393732
stx-genesis/chainstate.txt
393732
stx-genesis/chainstate.txt
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
||||
4f57293c77cec345c3ea89eeced83f03234c9e2b3edc3b37f2a131358fcc1de0
|
||||
5ee9c678f9f07ae04fdb6913993f2c60347a7f8c8ec959feb42604bc350df016
|
||||
Reference in New Issue
Block a user