SteemLinkedList v0.0.6-alpha Automated Test Run (test_run_1774667210)
SteemLinkedList Execution Report
List ID: test_run_1774667210
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=104682447 trx_id=21cfea5caf58466644380e86ef20c570957e8ba7 trx_num=0 - Appended Node B:
block=104682466 trx_id=18f2369d91e4d6ed370472d347409b7c91753e76 trx_num=0 - Appended Node C:
block=104682483 trx_id=e04b6bf0ee15bd8be1489e82fd1e91969e45047e trx_num=1 - Appended Node D:
block=104682499 trx_id=bf674d8145802e6cded8c64f65d4bdbc1da9338c trx_num=0
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=
c752224139f96916c01c70fbc91fcdcce18ad4b9.
4a. Delete Node by Active Index
- Soft-deleted node at active_index=1 (value: 'C'). Tombstone trx_id=
e3a6d4a80a35e0f6e90327b4fabf181cd58eea31. - 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=104682466, trx=18f2369d91e4d6ed370472d347409b7c91753e76, trx_num=0):{'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=
104682424, trx_id=45b5a34d336e2758cda19c0006535170dbeb0ded, trx_num=6(value: List Anchor) - Seq 1: block=
104682447, trx_id=21cfea5caf58466644380e86ef20c570957e8ba7, trx_num=0(value: A) - Seq 2: block=
104682466, trx_id=18f2369d91e4d6ed370472d347409b7c91753e76, trx_num=0(value: B) - Seq 3: block=
104682483, trx_id=e04b6bf0ee15bd8be1489e82fd1e91969e45047e, trx_num=1(value: C) - Seq 4: block=
104682499, trx_id=bf674d8145802e6cded8c64f65d4bdbc1da9338c, trx_num=0(value: D) - Seq 5: block=
104682547, trx_id=c752224139f96916c01c70fbc91fcdcce18ad4b9, trx_num=0(value: [DELETED]) - Seq 6: block=
104682563, trx_id=e3a6d4a80a35e0f6e90327b4fabf181cd58eea31, trx_num=1(value: [DELETED])