@@ -43,22 +43,38 @@ func TestBabbageBlockUtxorpc(t *testing.T) {
43
43
}
44
44
45
45
if ! bytes .Equal (utxoBlock .Header .Hash , hashBytes ) {
46
- t .Errorf ("unexpected block hash: got %x, want %x" , utxoBlock .Header .Hash , hashBytes )
46
+ t .Errorf (
47
+ "unexpected block hash: got %x, want %x" ,
48
+ utxoBlock .Header .Hash ,
49
+ hashBytes ,
50
+ )
47
51
}
48
52
49
53
// Verify block number matches what's in the header body
50
54
if utxoBlock .Header .Height != block .BlockHeader .Body .BlockNumber {
51
- t .Errorf ("unexpected block height: got %d, want %d" , utxoBlock .Header .Height , block .BlockHeader .Body .BlockNumber )
55
+ t .Errorf (
56
+ "unexpected block height: got %d, want %d" ,
57
+ utxoBlock .Header .Height ,
58
+ block .BlockHeader .Body .BlockNumber ,
59
+ )
52
60
}
53
61
54
62
// Verify slot number matches what's in the header body
55
63
if utxoBlock .Header .Slot != block .BlockHeader .Body .Slot {
56
- t .Errorf ("unexpected block slot: got %d, want %d" , utxoBlock .Header .Slot , block .BlockHeader .Body .Slot )
64
+ t .Errorf (
65
+ "unexpected block slot: got %d, want %d" ,
66
+ utxoBlock .Header .Slot ,
67
+ block .BlockHeader .Body .Slot ,
68
+ )
57
69
}
58
70
59
71
// Verify transactions
60
72
if len (utxoBlock .Body .Tx ) != len (block .TransactionBodies ) {
61
- t .Errorf ("unexpected transaction count: got %d, want %d" , len (utxoBlock .Body .Tx ), len (block .TransactionBodies ))
73
+ t .Errorf (
74
+ "unexpected transaction count: got %d, want %d" ,
75
+ len (utxoBlock .Body .Tx ),
76
+ len (block .TransactionBodies ),
77
+ )
62
78
}
63
79
64
80
// Verify the first transaction as a sample
@@ -69,11 +85,19 @@ func TestBabbageBlockUtxorpc(t *testing.T) {
69
85
}
70
86
71
87
if len (tx .Inputs ) != len (block .TransactionBodies [0 ].TxInputs .Items ()) {
72
- t .Errorf ("unexpected input count in first tx: got %d, want %d" , len (tx .Inputs ), len (block .TransactionBodies [0 ].TxInputs .Items ()))
88
+ t .Errorf (
89
+ "unexpected input count in first tx: got %d, want %d" ,
90
+ len (tx .Inputs ),
91
+ len (block .TransactionBodies [0 ].TxInputs .Items ()),
92
+ )
73
93
}
74
94
75
95
if len (tx .Outputs ) != len (block .TransactionBodies [0 ].TxOutputs ) {
76
- t .Errorf ("unexpected output count in first tx: got %d, want %d" , len (tx .Outputs ), len (block .TransactionBodies [0 ].TxOutputs ))
96
+ t .Errorf (
97
+ "unexpected output count in first tx: got %d, want %d" ,
98
+ len (tx .Outputs ),
99
+ len (block .TransactionBodies [0 ].TxOutputs ),
100
+ )
77
101
}
78
102
}
79
103
}
0 commit comments