@@ -1004,27 +1004,27 @@ func TestRangeProofKeysWithSharedPrefix(t *testing.T) {
10041004// to exit with errors
10051005func TestRangeProofErrors (t * testing.T ) {
10061006 // Different number of keys to values
1007- _ , err := VerifyRangeProof ((common.Hash {}), []byte {}, make ([][]byte , 5 ), make ([][]byte , 4 ), nil )
1007+ _ , _ , _ , _ , err := VerifyRangeProof ((common.Hash {}), [] byte {} , []byte {}, make ([][]byte , 5 ), make ([][]byte , 4 ), nil )
10081008 if have , want := err .Error (), "inconsistent proof data, keys: 5, values: 4" ; have != want {
10091009 t .Fatalf ("wrong error, have %q, want %q" , err .Error (), want )
10101010 }
10111011 // Non-increasing paths
1012- _ , err = VerifyRangeProof ((common.Hash {}), []byte {},
1012+ _ , _ , _ , _ , err = VerifyRangeProof ((common.Hash {}), [] byte {} , []byte {},
10131013 [][]byte {[]byte {2 , 1 }, []byte {2 , 1 }}, make ([][]byte , 2 ), nil )
10141014 if have , want := err .Error (), "range is not monotonically increasing" ; have != want {
10151015 t .Fatalf ("wrong error, have %q, want %q" , err .Error (), want )
10161016 }
10171017 // A prefixed path is never motivated. Inserting the second element will
10181018 // require rewriting/overwriting the previous value-node, thus can only
10191019 // happen if the data is corrupt.
1020- _ , err = VerifyRangeProof ((common.Hash {}), []byte {},
1020+ _ , _ , _ , _ , err = VerifyRangeProof ((common.Hash {}), [] byte {} , []byte {},
10211021 [][]byte {[]byte {2 , 1 }, []byte {2 , 1 , 2 }},
10221022 [][]byte {[]byte {1 }, []byte {1 }}, nil )
10231023 if have , want := err .Error (), "range contains path prefixes" ; have != want {
10241024 t .Fatalf ("wrong error, have %q, want %q" , err .Error (), want )
10251025 }
10261026 // Empty values (deletions)
1027- _ , err = VerifyRangeProof ((common.Hash {}), []byte {},
1027+ _ , _ , _ , _ , err = VerifyRangeProof ((common.Hash {}), [] byte {} , []byte {},
10281028 [][]byte {[]byte {2 , 1 }, []byte {2 , 2 }},
10291029 [][]byte {[]byte {1 }, []byte {}}, nil )
10301030 if have , want := err .Error (), "range contains deletion" ; have != want {
0 commit comments