Skip to content

Commit

Permalink
Amend
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Mar 8, 2024
1 parent 3f6ddfb commit 200f7d2
Showing 1 changed file with 65 additions and 4 deletions.
69 changes: 65 additions & 4 deletions src/index/updater/rune_updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,71 @@ use {
// - if indexing runes, must index outputs at least from 144 blocks before the rune activation height
// - possibly just index all outputs, so we have the utxo set
// - benchmark getting rid of the fetcher, and replacing OUTPOINT_TO_VALUE with OUTPOINT_TO_OUTPUT
//
// runes::tests::allocate_all_remaining_runes_in_etching
// runes::tests::allocate_all_remaining_runes_in_inputs
// runes::tests::allocations_over_max_supply_are_ignored
// runes::tests::allocations_partially_over_max_supply_are_honored
// runes::tests::allocations_to_invalid_outputs_are_ignored
// runes::tests::duplicate_runes_are_forbidden
// runes::tests::edicts_may_transfer_runes_to_op_return_outputs
// runes::tests::edicts_over_max_inputs_are_ignored
// runes::tests::edicts_which_refer_to_input_rune_with_no_balance_are_skipped
// runes::tests::edicts_which_transfer_no_runes_to_output_create_no_balance_entry
// runes::tests::edicts_with_id_zero_are_skipped
// runes::tests::etched_rune_is_allocated_with_zero_supply_for_burned_runestone
// runes::tests::etched_rune_open_etching_parameters_are_unset_for_burned_runestone
// runes::tests::etching_cannot_specify_reserved_rune
// runes::tests::etching_may_allocate_less_than_max_supply
// runes::tests::etching_may_allocate_to_multiple_outputs
// runes::tests::etching_may_specify_symbol
// runes::tests::etching_with_edict_creates_rune
// runes::tests::etching_with_limit_can_be_minted
// runes::tests::etching_with_non_zero_divisibility_and_rune
// runes::tests::input_runes_are_burned_if_an_unrecognized_even_tag_is_encountered
// runes::tests::input_runes_may_be_allocated
// runes::tests::limit_over_max_is_clamped
// runes::tests::multiple_edicts_in_one_transaction_may_claim_open_etching
// runes::tests::multiple_input_runes_on_different_inputs_may_be_allocated
// runes::tests::multiple_input_runes_on_the_same_input_may_be_allocated
// runes::tests::omitted_limit_defaults_to_max_limit
// runes::tests::open_etching_claims_can_use_split
// runes::tests::open_etchings_can_be_limited_to_deadline
// runes::tests::open_etchings_can_be_limited_to_term
// runes::tests::open_etchings_with_term_zero_cannot_be_minted
// runes::tests::outpoint_may_hold_multiple_runes
// runes::tests::outputs_with_no_runes_have_no_balance
// runes::tests::rune_can_be_minted_without_edict
// runes::tests::rune_rarity_is_assigned_correctly
// runes::tests::runes_can_be_etched_and_claimed_in_the_same_transaction
// runes::tests::runes_must_be_greater_than_or_equal_to_minimum_for_height
// runes::tests::split
// runes::tests::split_in_etching
// runes::tests::split_in_etching_with_amount_with_following_edict
// runes::tests::split_in_etching_with_amount_with_preceding_edict
// runes::tests::split_in_etching_with_following_edict
// runes::tests::split_in_etching_with_preceding_edict
// runes::tests::split_with_amount
// runes::tests::split_with_amount_in_etching
// runes::tests::split_with_amount_with_following_edict
// runes::tests::split_with_amount_with_preceding_edict
// runes::tests::split_with_following_edict
// runes::tests::split_with_preceding_edict
// runes::tests::transactions_cannot_claim_more_than_limit
// runes::tests::unallocated_runes_are_assigned_to_default_output
// runes::tests::unallocated_runes_are_assigned_to_first_non_op_return_output
// runes::tests::unallocated_runes_are_assigned_to_first_non_op_return_output_if_default_is_too_large
// runes::tests::unallocated_runes_are_assigned_to_first_non_op_return_output_when_op_return_is_not_last_output
// runes::tests::unallocated_runes_are_burned_if_default_output_is_op_return
// runes::tests::unallocated_runes_are_burned_if_no_non_op_return_output_is_present
// runes::tests::unallocated_runes_in_transactions_with_no_runestone_are_assigned_to_first_non_op_return_output
// subcommand::server::tests::runes_are_displayed_on_output_page
// subcommand::server::tests::runes_are_displayed_on_rune_page
// subcommand::server::tests::runes_are_displayed_on_runes_page
// subcommand::server::tests::runes_are_spaced
// subcommand::server::tests::runes_can_be_queried_by_rune_id
// subcommand::server::tests::search_by_rune_id_returns_rune
// subcommand::server::tests::transactions_link_to_etching

struct Claim {
id: u128,
Expand Down Expand Up @@ -244,8 +309,6 @@ impl<'a, 'db, 'tx> RuneUpdater<'a, 'db, 'tx> {
continue;
}

eprintln!("-{}", input.previous_output);

self
.outpoint_to_output
.remove(&input.previous_output.store())?
Expand All @@ -258,8 +321,6 @@ impl<'a, 'db, 'tx> RuneUpdater<'a, 'db, 'tx> {
vout: vout.try_into().unwrap(),
};

eprintln!("+{outpoint}");

self.outpoint_to_output.insert(
&outpoint.store(),
OutputEntry {
Expand Down

0 comments on commit 200f7d2

Please sign in to comment.