add a comment for a possible future optimization

This commit is contained in:
Zahary Karadjov 2018-09-25 15:32:30 +03:00 committed by zah
parent abd45a4596
commit 3678058f85

View File

@ -244,6 +244,7 @@ proc initRlpList*(listSize: int): RlpWriter =
result = initRlpWriter()
startList(result, listSize)
# TODO: This should return a lent value
proc finish*(self): seq[byte] =
if pendingLists.len > 0:
raise newException(PrematureFinalizationError,