Commit d6b96eb8 authored by zeroleak's avatar zeroleak
Browse files

cleanup

parent 0fe43066
......@@ -8,24 +8,17 @@ import com.samourai.whirlpool.cli.api.protocol.rest.ApiUtxoConfigureRequest;
import com.samourai.whirlpool.cli.services.CliWalletService;
import com.samourai.whirlpool.client.exception.NotifiableException;
import com.samourai.whirlpool.client.tx0.Tx0;
import com.samourai.whirlpool.client.tx0.Tx0Service;
import com.samourai.whirlpool.client.wallet.WhirlpoolWallet;
import com.samourai.whirlpool.client.wallet.beans.WhirlpoolUtxo;
import javax.validation.Valid;
import org.apache.logging.log4j.util.Strings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
@RestController
public class UtxoController extends AbstractRestController {
@Autowired private CliWalletService cliWalletService;
@Autowired private Tx0Service tx0Service;
private WhirlpoolUtxo findUtxo(String utxoHash, int utxoIndex) throws Exception {
// find utxo
......
......@@ -2,7 +2,6 @@ package com.samourai.whirlpool.cli.config;
import com.samourai.wallet.hd.java.HD_WalletFactoryJava;
import com.samourai.wallet.segwit.bech32.Bech32UtilGeneric;
import com.samourai.whirlpool.client.tx0.Tx0Service;
import java.lang.invoke.MethodHandles;
import org.bitcoinj.core.NetworkParameters;
import org.slf4j.Logger;
......@@ -43,11 +42,6 @@ public class CliServicesConfig {
return cliConfig.getServer().getParams();
}
@Bean
Tx0Service tx0Service(CliConfig cliConfig) {
return new Tx0Service(cliConfig.getServer().getParams());
}
@Bean
public CorsFilter corsFilter() {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment