What block to include in promise?

What block to include in promise?

par Aaron Joos Lippeveldts,
Nombre de réponses : 1

Hi,

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.

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?

En réponse à Aaron Joos Lippeveldts

Re: What block to include in promise?

par Cristina Basescu,

Hi,

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

Cristina