You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. Ensure Additions are as expected.
Merge the resultant Additions of the previous step, and attempt to recover a new TxGraph with them (this should succeed).
Now, insert the actual transaction of txid. Ensure anchors still exist.
Now, attempt recovery of the TxGraph again with the appended additions.
@remix75
Test TxGraph::get_chain_position and TxGraph::list_chain_txs behavior 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. TxGraph should always pick the transaction with the latest last_seen value. What happens if the conflicts have the same last_seen value? - @rajarshimaitra
Test TxGraph::get_chain_position and TxGraph::list_chain_txs behavior 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
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
TxGraphTest behavior of inserting
Anchors without the corresponding transaction existing in the graph. We should allow for this behavior.txid. EnsureAdditionsare as expected.Additionsof the previous step, and attempt to recover a newTxGraphwith them (this should succeed).txid. Ensure anchors still exist.TxGraphagain with the appended additions.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? - @rajarshimaitraTest
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