Skip to content

Commit

Permalink
update statecheck to use oasis-core v23
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjat committed Oct 26, 2023
1 parent 0891616 commit bd560e8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/statecheck/consensus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@ type TestNode struct {
EntityID string
Expiration uint64
TLSPubkey string
TLSNextPubkey string
P2pPubkey string
ConsensusPubkey string
VrfPubkey string
Roles string
SoftwareVersion string
SoftwareVersion node.SoftwareVersion
}

type TestRuntime struct {
Expand Down Expand Up @@ -317,15 +316,12 @@ func validateNodes(t *testing.T, genesis *registryAPI.Genesis, source consensusA
}

vrfPubkey := ""
if n.VRF != nil {
vrfPubkey = n.VRF.ID.String()
}
vrfPubkey = n.VRF.ID.String()
tn := TestNode{
ID: n.ID.String(),
EntityID: n.EntityID.String(),
Expiration: n.Expiration,
TLSPubkey: n.TLS.PubKey.String(),
TLSNextPubkey: n.TLS.NextPubKey.String(),
P2pPubkey: n.P2P.ID.String(),
VrfPubkey: vrfPubkey,
Roles: n.Roles.String(),
Expand All @@ -338,7 +334,7 @@ func validateNodes(t *testing.T, genesis *registryAPI.Genesis, source consensusA
rows, err := target.Query(ctx, `
SELECT
id, entity_id, expiration,
tls_pubkey, tls_next_pubkey, p2p_pubkey,
tls_pubkey, p2p_pubkey,
vrf_pubkey, roles, software_version
FROM
snapshot.nodes
Expand All @@ -356,7 +352,6 @@ func validateNodes(t *testing.T, genesis *registryAPI.Genesis, source consensusA
&n.EntityID,
&n.Expiration,
&n.TLSPubkey,
&n.TLSNextPubkey,
&n.P2pPubkey,
&n.VrfPubkey,
&n.Roles,
Expand Down

0 comments on commit bd560e8

Please sign in to comment.