Skip to content

Commit 10da0b4

Browse files
committed
proof: rename send fragment version to V1
1 parent f93cd77 commit 10da0b4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

proof/send.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ const (
3232
// fragment version is not recognized.
3333
SendFragmentVersionUnknown SendFragmentVersion = 0
3434

35-
// SendFragmentV0 is the first version of the send fragment.
36-
SendFragmentV0 SendFragmentVersion = 1
35+
// SendFragmentV1 is the first version of the send fragment.
36+
SendFragmentV1 SendFragmentVersion = 1
3737

3838
// LatestVersion is the latest version of the send fragment.
39-
LatestVersion = SendFragmentV0
39+
LatestVersion = SendFragmentV1
4040
)
4141

4242
// SendOutput is a single asset UTXO or leaf that is being sent to the receiver

proof/send_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestSendFragmentEncodeDecode(t *testing.T) {
3434
{
3535
name: "basic fragment",
3636
fragment: SendFragment{
37-
Version: SendFragmentV0,
37+
Version: SendFragmentV1,
3838
BlockHeader: wire.BlockHeader{
3939
Version: 1,
4040
PrevBlock: [32]byte{0x01},
@@ -63,7 +63,7 @@ func TestSendFragmentEncodeDecode(t *testing.T) {
6363
{
6464
name: "empty fragment",
6565
fragment: SendFragment{
66-
Version: SendFragmentV0,
66+
Version: SendFragmentV1,
6767
BlockHeader: wire.BlockHeader{
6868
Timestamp: time.Unix(1234567890, 0),
6969
},

0 commit comments

Comments
 (0)