A very experimental PLC implementation which uses BFT consensus for decentralization
19
fork

Configure Feed

Select the types of activity you want to include in your feed.

Correctly handle operations pointing to nullified prev

gbl08ma 02523b03 4806d0cc

+3 -1
+3 -1
plc/operation_validator.go
··· 88 88 } 89 89 90 90 if entry.CID.String() == proposedPrev { 91 - // TODO confirm what should happen if proposedPrev points to a nullified operation. we should probably be ignoring nullified ops here, but confirm with the reference impl 91 + if entry.Nullified { 92 + return OperationEffects{}, stacktrace.Propagate(ErrInvalidPrev, "prev operation is nullified") 93 + } 92 94 proposedPrevOp = mo.Some(entry) 93 95 break 94 96 } else {