@@ -60,7 +60,7 @@ func TestPresign(t *testing.T) {
6060 presigner presigner
6161 sweeps []sweep
6262 destAddr btcutil.Address
63- nextBlockFeerate chainfee.SatPerKWeight
63+ nextBlockFeeRate chainfee.SatPerKWeight
6464 wantErr string
6565 wantOutputs []btcutil.Amount
6666 wantLockTimes []uint32
@@ -75,15 +75,15 @@ func TestPresign(t *testing.T) {
7575 },
7676 },
7777 destAddr : destAddr ,
78- nextBlockFeerate : chainfee .FeePerKwFloor ,
78+ nextBlockFeeRate : chainfee .FeePerKwFloor ,
7979 wantErr : "presigner is not installed" ,
8080 },
8181
8282 {
8383 name : "error: no sweeps" ,
8484 presigner : & mockPresigner {},
8585 destAddr : destAddr ,
86- nextBlockFeerate : chainfee .FeePerKwFloor ,
86+ nextBlockFeeRate : chainfee .FeePerKwFloor ,
8787 wantErr : "there are no sweeps" ,
8888 },
8989
@@ -97,12 +97,12 @@ func TestPresign(t *testing.T) {
9797 timeout : 1000 ,
9898 },
9999 },
100- nextBlockFeerate : chainfee .FeePerKwFloor ,
100+ nextBlockFeeRate : chainfee .FeePerKwFloor ,
101101 wantErr : "unsupported address type <nil>" ,
102102 },
103103
104104 {
105- name : "error: zero nextBlockFeerate " ,
105+ name : "error: zero nextBlockFeeRate " ,
106106 presigner : & mockPresigner {},
107107 sweeps : []sweep {
108108 {
@@ -117,7 +117,7 @@ func TestPresign(t *testing.T) {
117117 },
118118 },
119119 destAddr : destAddr ,
120- wantErr : "nextBlockFeerate is not set" ,
120+ wantErr : "nextBlockFeeRate is not set" ,
121121 },
122122
123123 {
@@ -134,7 +134,7 @@ func TestPresign(t *testing.T) {
134134 },
135135 },
136136 destAddr : destAddr ,
137- nextBlockFeerate : chainfee .FeePerKwFloor ,
137+ nextBlockFeeRate : chainfee .FeePerKwFloor ,
138138 wantErr : "timeout is invalid: 0" ,
139139 },
140140
@@ -154,7 +154,7 @@ func TestPresign(t *testing.T) {
154154 },
155155 },
156156 destAddr : destAddr ,
157- nextBlockFeerate : chainfee .FeePerKwFloor ,
157+ nextBlockFeeRate : chainfee .FeePerKwFloor ,
158158 wantOutputs : []btcutil.Amount {
159159 2999842 , 2999811 , 2999773 , 2999728 , 2999674 ,
160160 2999609 , 2999530 , 2999436 , 2999324 , 2999189 ,
@@ -190,7 +190,7 @@ func TestPresign(t *testing.T) {
190190 },
191191 },
192192 destAddr : destAddr ,
193- nextBlockFeerate : 50 * chainfee .FeePerKwFloor ,
193+ nextBlockFeeRate : 50 * chainfee .FeePerKwFloor ,
194194 wantOutputs : []btcutil.Amount {
195195 2999842 , 2999811 , 2999773 , 2999728 , 2999674 ,
196196 2999609 , 2999530 , 2999436 , 2999324 , 2999189 ,
@@ -225,7 +225,7 @@ func TestPresign(t *testing.T) {
225225 },
226226 },
227227 destAddr : destAddr ,
228- nextBlockFeerate : chainfee .FeePerKwFloor ,
228+ nextBlockFeeRate : chainfee .FeePerKwFloor ,
229229 wantOutputs : []btcutil.Amount {
230230 2842 , 2811 , 2773 , 2728 , 2674 , 2609 , 2530 , 2436 ,
231231 2400 ,
@@ -253,7 +253,7 @@ func TestPresign(t *testing.T) {
253253 },
254254 },
255255 destAddr : destAddr ,
256- nextBlockFeerate : chainfee .FeePerKwFloor ,
256+ nextBlockFeeRate : chainfee .FeePerKwFloor ,
257257 wantErr : "for feeRate 363 sat/kw" ,
258258 },
259259 }
@@ -263,7 +263,7 @@ func TestPresign(t *testing.T) {
263263 t .Run (tc .name , func (t * testing.T ) {
264264 err := presign (
265265 ctx , tc .presigner , tc .destAddr , tc .sweeps ,
266- tc .nextBlockFeerate ,
266+ tc .nextBlockFeeRate ,
267267 )
268268 if tc .wantErr != "" {
269269 require .Error (t , err )
0 commit comments