SteemLinkedList v0.0.7-alpha Automated Test Run (test_run_1774704056)
SteemLinkedList Execution Report
List ID: test_run_1774704056
This is an automated post demonstrating the capabilities of the steem_linked_list data structure on the Steem blockchain.
1. Append Nodes
- Appended Node A:
block=104694699 trx_id=d0913e4f9c4ddf1d75c58ef8af13df441a96076f trx_num=1 - Appended Node B:
block=104694718 trx_id=9256ee7f1c2dbf7b1007a9f1ef5080bb848ebb90 trx_num=2 - Appended Node C:
block=104694739 trx_id=9e056b6e3d2b165d1ea3160238b0ecd40f202c2a trx_num=0 - Appended Node D:
block=104694757 trx_id=9bf0c4cebce47ad63d939d22465eebcbf9531d79 trx_num=1
Waiting 90 seconds for blocks to confirm...
2. Index Rebuild & Sync
rebuild_index()successfully loaded 5 nodes via targeted prev-chain walking.sync()found 0 new nodes (incremental sync test).
3. Traversal & Searches
- Forward iteration:
['A', 'B', 'C', 'D'] - Reverse iteration:
['D', 'C', 'B', 'A'] - Head node value:
A - Search: Payload with value 'B' found at seq=
2
4. Delete Node by Absolute Sequence
- Soft-deleted node at seq=2 (value: 'B'). Tombstone trx_id=
86d78be508f53414002e020f6095226b27b60ff7.
4a. Delete Node by Active Index
- Soft-deleted node at active_index=1 (value: 'C'). Tombstone trx_id=
0613563d1480f875e8f9400d389c5c7d9fe6fedc. - Active items visible during normal iteration:
['A', 'D'] - All items including tombstones:
['A', 'B', 'C', 'D', '[DELETED]', '[DELETED]'] get(2)accesses absolute seq=2:B(Now deleted)get_active(1)accesses the 2nd remaining active node:D
5. Fetch Node Directly by Pointer
- Fetched node directly from blockchain via pointer
(block=104694718, trx=9256ee7f1c2dbf7b1007a9f1ef5080bb848ebb90, trx_num=2):{'action': 'append', 'value': 'B', 'desc': 'Second node'}
6. Export & Import Index
- Exported local index into a standard JSON list (length: 7)
- Imported index into a new list instance without querying the blockchain. Verified head value:
A
7. Final Linked List State
Here are the block and transaction numbers for the final linked list:
- Seq 0: block=
104694681, trx_id=7d789deb70da3fc063956375fde0908dd7140bd5, trx_num=0(value: List Anchor) - Seq 1: block=
104694699, trx_id=d0913e4f9c4ddf1d75c58ef8af13df441a96076f, trx_num=1(value: A) - Seq 2: block=
104694718, trx_id=9256ee7f1c2dbf7b1007a9f1ef5080bb848ebb90, trx_num=2(value: B) - Seq 3: block=
104694739, trx_id=9e056b6e3d2b165d1ea3160238b0ecd40f202c2a, trx_num=0(value: C) - Seq 4: block=
104694757, trx_id=9bf0c4cebce47ad63d939d22465eebcbf9531d79, trx_num=1(value: D) - Seq 5: block=
104694811, trx_id=86d78be508f53414002e020f6095226b27b60ff7, trx_num=0(value: [DELETED]) - Seq 6: block=
104694827, trx_id=0613563d1480f875e8f9400d389c5c7d9fe6fedc, trx_num=0(value: [DELETED])