Onionr/scripts/testblock.py
Kevin Froman a3ce191ed3 renamed old block api due to namespace conflict
fix onboarding not using optimize cpu option
2021-01-21 20:23:58 +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))