@@ -99,12 +99,6 @@ type PeersResponse struct {
9999 Count int `json:"count"`
100100}
101101
102- // FeeEstimateResponse represents the /v1/fees/estimate response
103- type FeeEstimateResponse struct {
104- FeeRate int `json:"fee_rate"`
105- TargetBlocks int `json:"target_blocks"`
106- }
107-
108102// UTXOsResponse represents the /v1/utxos response
109103type UTXOsResponse struct {
110104 UTXOs []struct {
@@ -192,7 +186,6 @@ func TestMainnetE2E(t *testing.T) {
192186 t .Run ("GenesisBlock" , func (t * testing.T ) { testGenesisBlock (t , baseURL ) })
193187 t .Run ("Block100000" , func (t * testing.T ) { testBlock100000 (t , baseURL ) })
194188 t .Run ("Block500000" , func (t * testing.T ) { testBlock500000 (t , baseURL ) })
195- t .Run ("FeeEstimate" , func (t * testing.T ) { testFeeEstimate (t , baseURL ) })
196189 t .Run ("WatchAddress" , func (t * testing.T ) { testWatchAddress (t , baseURL ) })
197190 t .Run ("UTXOs" , func (t * testing.T ) { testUTXOs (t , baseURL ) })
198191}
@@ -504,25 +497,6 @@ func testBlock500000(t *testing.T, baseURL string) {
504497 }
505498}
506499
507- func testFeeEstimate (t * testing.T , baseURL string ) {
508- var fee FeeEstimateResponse
509- if err := getJSON (t , baseURL , "/v1/fees/estimate?target_blocks=6" , & fee ); err != nil {
510- t .Fatalf ("Failed to get fee estimate: %v" , err )
511- }
512-
513- t .Logf ("Fee estimate: fee_rate=%d sat/vB, target_blocks=%d" , fee .FeeRate , fee .TargetBlocks )
514-
515- // Fee rate should be positive
516- if fee .FeeRate <= 0 {
517- t .Errorf ("Fee rate should be positive, got %d" , fee .FeeRate )
518- }
519-
520- // Target blocks should match our request
521- if fee .TargetBlocks != 6 {
522- t .Errorf ("Target blocks should be 6, got %d" , fee .TargetBlocks )
523- }
524- }
525-
526500func testWatchAddress (t * testing.T , baseURL string ) {
527501 // Watch Satoshi's address
528502 body := fmt .Sprintf (`{"address": "%s"}` , satoshiAddress )
0 commit comments