Sketch of marking a WorkOrder complete.

pull/142/head
jMyles 2017-12-07 20:40:21 -08:00
parent 8c243ed399
commit f5ef7c6eaf
1 changed files with 5 additions and 0 deletions

View File

@ -333,3 +333,8 @@ class WorkOrder(object):
pfrags_as_bytes = [bytes(p) for p in self.pfrags]
packed_receipt_and_pfrags = msgpack.dumps((self.receipt_bytes, msgpack.dumps(pfrags_as_bytes)))
return bytes(self.receipt_signature) + self.bob.seal + packed_receipt_and_pfrags
def complete(self, cfrags):
# TODO: Verify that this is in fact complete - right of CFrags and properly signed.
# TODO: Mark it complete with datetime.
self