correct return type in storage setdata
This commit is contained in:
parent
1e7d7840b1
commit
a9096dc048
@ -13,6 +13,7 @@ from onionrblocks import storagecounter
|
|||||||
from coredb import dbfiles
|
from coredb import dbfiles
|
||||||
from onionrutils import blockmetadata, bytesconverter
|
from onionrutils import blockmetadata, bytesconverter
|
||||||
from etc.onionrvalues import DATABASE_LOCK_TIMEOUT
|
from etc.onionrvalues import DATABASE_LOCK_TIMEOUT
|
||||||
|
from onionrtypes import BlockHash
|
||||||
"""
|
"""
|
||||||
This program is free software: you can redistribute it and/or modify
|
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
|
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()
|
storage_counter = storagecounter.StorageCounter()
|
||||||
|
|
||||||
|
|
||||||
def set_data(data) -> str:
|
def set_data(data) -> BlockHash:
|
||||||
"""Set the data assciated with a hash."""
|
"""Set the data assciated with a hash."""
|
||||||
data = data
|
data = data
|
||||||
dataSize = sys.getsizeof(data)
|
dataSize = sys.getsizeof(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user