-
Notifications
You must be signed in to change notification settings - Fork 54
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
🐛 Fix payments recognition during advances #180
Conversation
Verified with random start heights reindexing on the testnet. Before
Expected:
|
self.logger.info(f'advance_txs: found valid subrealm payment create_or_delete_subname_payment_output_if_valid {hash_to_hex_str(tx_hash)}') | ||
append_hashX(double_sha256(payment_tx_hash)) | ||
append_hashX(double_sha256(subrealm_payment_tx_hash)) | ||
self.put_op_data(tx_num, tx_hash, "payment-subrealm") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to write the corresponding operation based on the successful payment status of payment? Like payment-subrealm
and payment-subrealm-failed
Per offline discussion, op record should indicate if the payment is failed, for example, |
electrumx/server/block_processor.py
Outdated
@@ -2209,7 +2208,8 @@ def get_raw_mint_info_by_atomical_id_notused(self, atomical_id): | |||
# Get the atomical details base info | |||
# Does not retrieve the active b'a' locations in this method because there could be many thousands (in the case of FTs) | |||
# Another method is provided to layer on the active location and gives the user control over whether to retrieve them | |||
def get_base_mint_info_by_atomical_id(self, atomical_id): | |||
def get_base_mint_info_by_atomical_id(self, atomical_id, height: int = None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"None" is incompatible with "int"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced with Optional[int]
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good
The verified status of an Atomical relies on the reveal window. The height in the query is the latest advanced block height rather than the processing height, which leads to an incorrect verified status for the container and realm.
The issue used to produce incorrect block hashes, probably incorrect Atomicals assets.
See height:
tx
records below for more details on the testnet:b756276cdd06cc188c0266010c9fbf3e416089967a898275ca2909b93081f3ce
a98015464f0859b5f56011b4c0fb8911a83cac61cd77730744447919c79471a0