Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ordit): merge version 0.12.0 #2

Merged
merged 42 commits into from
Nov 27, 2023
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
d6e283d
Fix lost sats bug (#2666)
raphjaph Nov 13, 2023
b9cf53d
Add Hindi version of handbook (#2648)
duttydeedz Nov 13, 2023
e39031a
Remove Index::index_block_inscription_numbers (#2667)
casey Nov 13, 2023
ccef9a8
Hide protocol inscriptions (#2674)
casey Nov 15, 2023
b0c8cdf
Don't color links in headers (#2678)
casey Nov 15, 2023
94585a2
Add inscription charms (#2681)
casey Nov 16, 2023
8f4e321
Group rune server tests (#2685)
casey Nov 16, 2023
ab047f7
Add inscription compression (#1713)
terror Nov 16, 2023
aa4ae24
Fix media table formatting (#2686)
casey Nov 16, 2023
86ddcf5
Update schema version for charms (#2687)
casey Nov 16, 2023
f1e3c50
Fix unbound outpoint server error (#2479)
raphjaph Nov 16, 2023
64434e4
Add binary media type (#2671)
elocremarc Nov 16, 2023
87c5394
Clean up install.sh (#2669)
eagr Nov 16, 2023
b50b536
Add /collections Page (#2561)
veryordinally Nov 18, 2023
ad0fe30
Preview font inscriptions (#2692)
elocremarc Nov 19, 2023
1a5c35f
Only load used language highlight module in code preview (#2696)
casey Nov 19, 2023
a2943f5
Only try to create the database if it wasn't found (#2703)
casey Nov 20, 2023
1b0bde9
Move postage into batch file (#2705)
raphjaph Nov 20, 2023
dd56f2c
Add destination field to batch (#2701)
raphjaph Nov 21, 2023
8f703d1
Use sequence numbers database keys (#2664)
casey Nov 21, 2023
03de5b4
Update redb to 1.4.0 (#2714)
casey Nov 22, 2023
d666d90
Refactor inscriptions paginations (#2715)
raphjaph Nov 22, 2023
50e5b45
Display table stats in `ord index info` (#2711)
casey Nov 22, 2023
a564dc9
Use redb's recovery callback API (#2584)
cberner Nov 22, 2023
bd6a1a7
Allow setting CSP origin (#2708)
rot13maxi Nov 22, 2023
5542220
Remove default file path from `ord index export --tsv` (#2717)
casey Nov 22, 2023
03468a6
Use icons in nav bar (#2722)
casey Nov 22, 2023
5fc7798
Add Debian packaging instructions (#2725)
casey Nov 22, 2023
8baf834
Add Homebrew install instructions to readme (#2726)
casey Nov 23, 2023
61fbdbd
Add sat recursive endpoints with index and pagination (#2680)
raphjaph Nov 23, 2023
99b944d
Only accept sat number in recursive endpoint (#2732)
raphjaph Nov 23, 2023
94a9a5a
Fix typo in docs/src/inscriptions/metadata.md (#2731)
vuittont60 Nov 23, 2023
309d7b6
Add docs for metadata recursive endpoint (#2734)
raphjaph Nov 23, 2023
5a9872b
Remove `RUNE` from <h1> on /rune (#2728)
casey Nov 23, 2023
59a8f6b
Add /r/children recursive endpoint (#2431)
elocremarc Nov 24, 2023
7f5b3dd
Add docs and examples for sat recursive endpoint (#2735)
raphjaph Nov 24, 2023
f8f88cd
Ignore flaky test (#2742)
casey Nov 24, 2023
c3c090b
Update docs to include all fields, including content-encoding (#2740)
raphjaph Nov 24, 2023
03bcba8
Add docs for child recursive endpoint (#2743)
raphjaph Nov 24, 2023
fe8f055
Hide JSON and .btc (#2744)
raphjaph Nov 24, 2023
3adccf8
Release 0.12.0 (#2746)
raphjaph Nov 24, 2023
ccf5046
chore(ordit): merge version 0.12.0
joundy Nov 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove Index::index_block_inscription_numbers (ordinals#2667)
  • Loading branch information
casey committed Nov 13, 2023
commit e39031a46531696e5dd0c853146f8bfab5b7582c
24 changes: 4 additions & 20 deletions src/index/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,11 +525,10 @@ impl<'index> Updater<'_> {
}
}

self.index_block_inscription_numbers(
&mut height_to_last_sequence_number,
&inscription_updater,
index_inscriptions,
)?;
if index_inscriptions {
height_to_last_sequence_number
.insert(&self.height, inscription_updater.next_sequence_number)?;
}

statistic_to_count.insert(
&Statistic::LostSats.key(),
Expand Down Expand Up @@ -656,21 +655,6 @@ impl<'index> Updater<'_> {
Ok(())
}

fn index_block_inscription_numbers(
&mut self,
height_to_sequence_number: &mut Table<u64, u64>,
inscription_updater: &InscriptionUpdater,
index_inscription: bool,
) -> Result {
if !index_inscription {
return Ok(());
}

height_to_sequence_number.insert(&self.height, inscription_updater.next_sequence_number)?;

Ok(())
}

fn commit(&mut self, wtx: WriteTransaction, value_cache: HashMap<OutPoint, u64>) -> Result {
log::info!(
"Committing at block height {}, {} outputs traversed, {} in map, {} cached",
Expand Down