Skip to content

Commit

Permalink
final difficulty for presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroProofs committed Aug 26, 2023
1 parent 04ca8dc commit 17844fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions miner/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const mine = new Command()
if (
state.fields[0] as bigint % 2016n === 0n && state.fields[0] as bigint > 0
) {
const adjustment = getDifficultyAdjustement(epoch_time, 1209600000n);
const adjustment = getDifficultyAdjustement(epoch_time, 12_096_000_000n);

epoch_time = 0n;

Expand Down Expand Up @@ -232,7 +232,7 @@ const genesis = new Command()
// current_hash: ByteArray
boostrapHash,
// leading_zeros: Int
2n,
5n,
// difficulty_number: Int
65535n,
// epoch_time: Int
Expand Down
2 changes: 1 addition & 1 deletion validators/tuna.ak
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ validator(utxo_ref: OutputReference) {
State {
block_number: 0,
current_hash: bootstrap_hash,
leading_zeros: 4,
leading_zeros: 5,
difficulty_number: 65535,
epoch_time: 0,
current_posix_time: averaged_current_time,
Expand Down

0 comments on commit 17844fc

Please sign in to comment.