Nothing the control queue carries is lost while the store restarts (issue 083) #43

Merged
jschoubben merged 5 commits from multiple-fixes into main 2026-09-22 12:42:58 +00:00
Showing only changes of commit 32b8af6a9b - Show all commits
+13
View File
@@ -0,0 +1,13 @@
package link
import "testing"
// The bytes a node signs when it enrols, built here to check its signature. The host builds the
// same bytes in another repository; this known answer is repeated in its test, so the two cannot
// drift apart without one of them failing (novox/hq issue 083).
func TestWhatAnEnrollingNodeSignsIsFixed(t *testing.T) {
got := string(EnrolProof("s", []byte{1, 2, 3}, "o", "e", "v"))
if want := "novox-mesh-enrol\x00s\x00AQID\x00o\x00e\x00v"; got != want {
t.Fatalf("the enrolment proof's message changed: %q, want %q", got, want)
}
}