Onionr/scripts/testblock.py

13 lines
217 B
Python
Raw Permalink Normal View History

2020-09-20 21:13:46 +00:00
#!/usr/bin/env python3
import sys
import os
if not os.path.exists('onionr.sh'):
os.chdir('../')
sys.path.append("src/")
import oldblocks
2020-09-20 21:13:46 +00:00
expire = 600
print(oldblocks.insert(data=os.urandom(32), expire=expire))
2020-09-20 21:13:46 +00:00