mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Some cleanup of CompensationRequestManager
This commit is contained in:
parent
ff629542e7
commit
80a0829c2a
1 changed files with 0 additions and 7 deletions
|
@ -146,10 +146,6 @@ public class CompensationRequestManager implements PersistedDataHost, BsqBlockCh
|
|||
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream()) {
|
||||
compensationRequest.setCompensationRequestFee(feeService.getCreateCompensationRequestFee());
|
||||
compensationRequest.setFeeTx(bsqWalletService.getPreparedBurnFeeTx(compensationRequest.getCompensationRequestFee()));
|
||||
|
||||
String bsqAddress = compensationRequestPayload.getBsqAddress();
|
||||
// Remove initial B
|
||||
bsqAddress = bsqAddress.substring(1, bsqAddress.length());
|
||||
checkArgument(!compensationRequest.getFeeTx().getInputs().isEmpty(), "preparedTx inputs must not be empty");
|
||||
|
||||
// We use the key of the first BSQ input for signing the data
|
||||
|
@ -181,11 +177,8 @@ public class CompensationRequestManager implements PersistedDataHost, BsqBlockCh
|
|||
compensationRequest.getIssuanceAddress(bsqWalletService),
|
||||
compensationRequest.getFeeTx(),
|
||||
opReturnData));
|
||||
if (contains(compensationRequestPayload)) {log.error("Req found");}
|
||||
compensationRequest.setSignedTx(bsqWalletService.signTx(compensationRequest.getTxWithBtcFee()));
|
||||
if (contains(compensationRequestPayload)) {log.error("Req found");}
|
||||
}
|
||||
if (contains(compensationRequestPayload)) {log.error("Req found");}
|
||||
return compensationRequest;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue