-
Notifications
You must be signed in to change notification settings - Fork 438
Description
Describe the enhancement
Now that #926 is merged, let's look at having more fine-grained tests.
Please comment below if you wish to work on a test (to avoid duplicate work!).
Proposed tests
For TxGraph
-
Test behavior of inserting
Anchors without the corresponding transaction existing in the graph. We should allow for this behavior.- Insert various anchors for a non-existing
txid. EnsureAdditionsare as expected. - Merge the resultant
Additionsof the previous step, and attempt to recover a newTxGraphwith them (this should succeed). - Now, insert the actual transaction of
txid. Ensure anchors still exist. - Now, attempt recovery of the
TxGraphagain with the appended additions.
- @remix75
- Insert various anchors for a non-existing
-
Test
TxGraph::get_chain_positionandTxGraph::list_chain_txsbehavior with unconfirmed conflicts. "Unconfirmed" can either mean that the txs do not have anchors, or that the anchors are not in the best chain. Both cases need to be tested.TxGraphshould always pick the transaction with the latestlast_seenvalue. What happens if the conflicts have the samelast_seenvalue? - @rajarshimaitra -
Test
TxGraph::get_chain_positionandTxGraph::list_chain_txsbehavior with unconfirmed transactions (txs with no anchors) that conflict with transactions that are confirmed. The unconfirmed transactions should not be givne a chain position or be listed. - @LagginTimes
Metadata
Metadata
Assignees
Labels
Type
Projects
Status