Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICS-06: Solomachine Refactor #821

Merged
merged 13 commits into from
Jan 9, 2023
Prev Previous commit
Next Next commit
deprecate header sequence
  • Loading branch information
AdityaSripal committed Dec 14, 2022
commit 0f9eba1a224750fefd4fa79cca8b98e681a06b9b
3 changes: 1 addition & 2 deletions spec/client/ics-006-solo-machine-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The `Height` of a solo machine is just a `uint64`, with the usual comparison ope

```typescript
interface Header {
sequence: uint64
AdityaSripal marked this conversation as resolved.
Show resolved Hide resolved
sequence: uint64 // deprecated
timestamp: uint64
signature: Signature
newPublicKey: PublicKey
Expand Down Expand Up @@ -167,7 +167,6 @@ function verifyClientMessage(clientMsg: ClientMessage) {
}

function verifyHeader(header: header) {
assert(header.sequence === clientState.consensusState.sequence)
assert(header.timestamp >= clientstate.consensusState.timestamp)
crodriguezvega marked this conversation as resolved.
Show resolved Hide resolved
headerData = {
NewPubKey: header.newPubKey,
Expand Down