What block to include in promise?

Re: What block to include in promise?

by Cristina Basescu -
Number of replies: 0


Thanks for your question.

From what I understand from the spec, we are supposed to send a promise with a block only if we have previously accepted a proposal for that round.

That's right.

But in the PaxosPromise struct, the value is not optional (not a pointer).
So what are we supposed to send if we have not accepted anything yet?

Good catch, thanks! The Value *should be* optional. You're right that in the skeleton it isn't, so in the case you described please send an empty block "types.Block{}".