Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions docs/extended_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ tasks such as sending and receiving transfers.
.. automethod:: Iota.get_transfers
.. automethod:: AsyncIota.get_transfers

``is_confirmed``
-----------------
.. automethod:: Iota.is_confirmed
.. automethod:: AsyncIota.is_confirmed

``is_promotable``
-----------------
.. automethod:: Iota.is_promotable
Expand Down
3 changes: 3 additions & 0 deletions iota/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ def get_inclusion_states(
)
)

# Add an alias for this call, more descriptive
is_confirmed = get_inclusion_states

def get_missing_transactions(self) -> dict:
"""
Returns all transaction hashes that a node is currently requesting
Expand Down
3 changes: 3 additions & 0 deletions iota/api_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ async def get_inclusion_states(
transactions=transactions,
)

# Add an alias, more descriptive
is_confirmed = get_inclusion_states

async def get_missing_transactions(self) -> dict:
"""
Returns all transaction hashes that a node is currently requesting
Expand Down