1914

1915
looks like it is blocking and reading 1.6MaB chunks of data at once. I
can hack it to read only 4 bytes.

[user@ log]$ echo 'Hello, Universe!' | python3 capture_stdin.py
warning: this script hopefully works but drops chunks due to waiting
on network and not buffering input
Capturing ...
{"ditem": ["p-hxoXSPCy1DM8zJWg4GUtctZxYZDheLPhEFqMsOInY"],
"min_block": [1056139,
"UOK0KqI17Lsg37QwPUBmSLodqcirmZ1KuaanCeTksrDLmtiS4xWPLRy6ErGOP7C2"],
"api_block": 1056539}
{"ditem": ["T7UNzpyArtyZU40dS9Z4zJ0gY1cTmyWLtDvrmWIls00"],
"min_block": [1056139,
"UOK0KqI17Lsg37QwPUBmSLodqcirmZ1KuaanCeTksrDLmtiS4xWPLRy6ErGOP7C2"],
"api_block": 1056539}
{"ditem": ["d_kmualjoqspfSQxyZPXaNRMn-jDDlhQNZuEjOGA0Jw"],
"min_block": [1056139,
"UOK0KqI17Lsg37QwPUBmSLodqcirmZ1KuaanCeTksrDLmtiS4xWPLRy6ErGOP7C2"],
"api_block": 1056539}
{"ditem": ["9Y4GsFXDP9nY2DwqtHGH0i4oLLjZQIoHLcNek0qKuf8"],
"min_block": [1056139,
"UOK0KqI17Lsg37QwPUBmSLodqcirmZ1KuaanCeTksrDLmtiS4xWPLRy6ErGOP7C2"],
"api_block": 1056539}
{"ditem": ["2vVoAxb298bO9j8kJ4PpksaZAYKFnBRSzn_UOVZekMQ"],
"min_block": [1056139,
"UOK0KqI17Lsg37QwPUBmSLodqcirmZ1KuaanCeTksrDLmtiS4xWPLRy6ErGOP7C2"],
"api_block": 1056539}

The last output data is the root node.

I've started the download and it's caching blocks to try to find the
data. Presently it has to be mined for it to find it.

[user@ log]$ echo '{"ditem":
["2vVoAxb298bO9j8kJ4PpksaZAYKFnBRSzn_UOVZekMQ"], "min_block":
[1056139, "UOK0KqI17Lsg37QwPUBmSLodqcirmZ1KuaanCeTksrDLmtiS4xWPLRy6ErGOP7C2"],
"api_block": 1056539}' > hellouniverse.json
[user@ log]$ python3 download.py hellouniverse.json
Caching 1056140: 100%|████████████████████████████████████████| 86/86
[00:11<00:00,  7.66tx/s]

But, I forgot to update flat_tree. So this isn't actually testing it.

1918

[user@ log]$ pip3 install --upgrade git+https://github.com/xloem/flat_tree@main

[user@ log]$ echo '{"ditem":
["9fHmJ9utcCSAYPVPGUau98J7fl1i-lI9E8TvvQsx6CA"], "min_block":
[1056141, "PvRhlqyLRwsUjkFLL19PYc872olmvDXbgfizaWLzMasIce4tnsg3JILUOuVHFU7U"],
"api_block": 1056541}' > hellouniverse.json

It ran with the new flat_tree !

To give it a little time to consider being mined, I'll ensure the
script actually _uses_ flat_tree and doesn't craft the structure by
hand.

from flat_tree import flat_tree

indices = flat_tree(3) #append_indices(3)

It looks like it's working.
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many
  • Re: [ot][spa... Undescribed Horrific Abuse, One Victim & Survivor of Many

Reply via email to