Onionr/scripts/testblock.py
Kevin Froman ca37f6df9d renamed old block api due to namespace conflict
fix onboarding not using optimize cpu option
2021-01-17 04:58:28 +00:00

13 lines
217 B
Python
Executable File

#!/usr/bin/env python3
import sys
import os
if not os.path.exists('onionr.sh'):
os.chdir('../')
sys.path.append("src/")
import oldblocks
expire = 600
print(oldblocks.insert(data=os.urandom(32), expire=expire))