input: add anchor witness type

This commit is contained in:
Joost Jager
2020-03-10 13:23:17 +01:00
parent dd77d9263e
commit c376cdb733
6 changed files with 155 additions and 67 deletions

View File

@@ -280,3 +280,11 @@ func TestTxWeightEstimator(t *testing.T) {
}
}
}
// TestSizes guards calculated constants to make sure their values remain
// unchanged.
func TestSizes(t *testing.T) {
if input.AnchorWitnessSize != 116 {
t.Fatal("unexpected anchor witness size")
}
}