Skip to content

Commit

Permalink
Notes, sort dedups
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Oct 16, 2023
1 parent 069a0eb commit 23b6607
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index/updater/rune_updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ impl<'a, 'db, 'tx> RuneUpdater<'a, 'db, 'tx> {
.iter()
.filter_map(|edict| edict.id.checked_sub(1 << 80))
.collect::<Vec<u128>>();
claims.sort();
claims.dedup();
for id in claims {
if let Ok(key) = RuneId::try_from(id) {
Expand Down
2 changes: 2 additions & 0 deletions src/runes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ pub(crate) use {
// todo:
// - a short term can increase limit
// - limit open etching by sats burned
// - test claim sizes
// - reduce max size of claim, assume human life on earth ceases after 1 billion years

const MAX_DIVISIBILITY: u8 = 38;
const MAX_LIMIT: u128 = 1 << 70;
Expand Down

0 comments on commit 23b6607

Please sign in to comment.