We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26f29a7 commit 434e5fbCopy full SHA for 434e5fb
txnsync/bitmask.go
@@ -28,6 +28,7 @@ type bitmask []byte
28
29
// assumed to be in mode 0, sets bit at index to 1
30
func (b *bitmask) setBit(index int) {
31
+ // bitmask type is stored at index 0, so the rest of the data is stored after.
32
byteIndex := index/8 + 1
33
(*b)[byteIndex] |= 1 << (index % 8)
34
}
txnsync/bitmask_test.go
@@ -27,7 +27,7 @@ import (
27
"github.com/algorand/go-algorand/test/partitiontest"
)
-func TestTrimBitmaskNi(t *testing.T) {
+func TestTrimBitmaskNil(t *testing.T) {
partitiontest.PartitionTest(t)
var b bitmask
0 commit comments