feat: commit production Stacks 1.0 chainstate.txt as of block 653759

This commit is contained in:
Matthew Little
2020-12-10 15:11:13 +01:00
parent beb8c2f4c4
commit fe96f0d073
3 changed files with 393735 additions and 8 deletions

View File

@@ -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();

File diff suppressed because it is too large Load Diff

View File

@@ -1 +1 @@
4f57293c77cec345c3ea89eeced83f03234c9e2b3edc3b37f2a131358fcc1de0
5ee9c678f9f07ae04fdb6913993f2c60347a7f8c8ec959feb42604bc350df016