Homework 3 forum

What block to include in promise?

Picture of Cristina Basescu
Re: What block to include in promise?
by Cristina Basescu - Monday, 23 November 2020, 11:50


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{}".