correct return type in storage setdata

master
Kevin Froman 2020-10-15 09:50:52 +00:00
parent 1e7d7840b1
commit a9096dc048
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ from onionrblocks import storagecounter
from coredb import dbfiles
from onionrutils import blockmetadata, bytesconverter
from etc.onionrvalues import DATABASE_LOCK_TIMEOUT
from onionrtypes import BlockHash
"""
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -30,7 +31,7 @@ from etc.onionrvalues import DATABASE_LOCK_TIMEOUT
storage_counter = storagecounter.StorageCounter()
def set_data(data) -> str:
def set_data(data) -> BlockHash:
"""Set the data assciated with a hash."""
data = data
dataSize = sys.getsizeof(data)