mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-02 21:47:18 +00:00
Rename VersionedChecksummedBytes→PrefixedChecksummedBytes, Address→LegacyAddress and AbstractAddress→Address.
This also renames corresponding test classes and mentions in comments.
This commit is contained in:
@@ -68,7 +68,7 @@ public class SendMoneyController {
|
||||
// Address exception cannot happen as we validated it beforehand.
|
||||
try {
|
||||
Coin amount = Coin.parseCoin(amountEdit.getText());
|
||||
Address destination = Address.fromBase58(Main.params, address.getText());
|
||||
LegacyAddress destination = LegacyAddress.fromBase58(Main.params, address.getText());
|
||||
SendRequest req;
|
||||
if (amount.equals(Main.bitcoin.wallet().getBalance()))
|
||||
req = SendRequest.emptyWallet(destination);
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package wallettemplate.controls;
|
||||
|
||||
import org.bitcoinj.core.Address;
|
||||
import org.bitcoinj.core.LegacyAddress;
|
||||
import org.bitcoinj.core.AddressFormatException;
|
||||
import org.bitcoinj.core.NetworkParameters;
|
||||
import javafx.scene.Node;
|
||||
@@ -52,7 +52,7 @@ public class BitcoinAddressValidator {
|
||||
|
||||
private boolean testAddr(String text) {
|
||||
try {
|
||||
Address.fromBase58(params, text);
|
||||
LegacyAddress.fromBase58(params, text);
|
||||
return true;
|
||||
} catch (AddressFormatException e) {
|
||||
return false;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package wallettemplate.controls;
|
||||
|
||||
import org.bitcoinj.core.Address;
|
||||
import org.bitcoinj.core.LegacyAddress;
|
||||
import org.bitcoinj.uri.BitcoinURI;
|
||||
import de.jensd.fx.fontawesome.AwesomeDude;
|
||||
import de.jensd.fx.fontawesome.AwesomeIcon;
|
||||
@@ -61,7 +61,7 @@ public class ClickableBitcoinAddress extends AnchorPane {
|
||||
@FXML protected Label copyWidget;
|
||||
@FXML protected Label qrCode;
|
||||
|
||||
protected SimpleObjectProperty<Address> address = new SimpleObjectProperty<>();
|
||||
protected SimpleObjectProperty<LegacyAddress> address = new SimpleObjectProperty<>();
|
||||
private final StringExpression addressStr;
|
||||
|
||||
public ClickableBitcoinAddress() {
|
||||
@@ -90,15 +90,15 @@ public class ClickableBitcoinAddress extends AnchorPane {
|
||||
return BitcoinURI.convertToBitcoinURI(address.get(), null, Main.APP_NAME, null);
|
||||
}
|
||||
|
||||
public Address getAddress() {
|
||||
public LegacyAddress getAddress() {
|
||||
return address.get();
|
||||
}
|
||||
|
||||
public void setAddress(Address address) {
|
||||
public void setAddress(LegacyAddress address) {
|
||||
this.address.set(address);
|
||||
}
|
||||
|
||||
public ObjectProperty<Address> addressProperty() {
|
||||
public ObjectProperty<LegacyAddress> addressProperty() {
|
||||
return address;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ import java.util.Date;
|
||||
* A class that exposes relevant bitcoin stuff as JavaFX bindable properties.
|
||||
*/
|
||||
public class BitcoinUIModel {
|
||||
private SimpleObjectProperty<Address> address = new SimpleObjectProperty<>();
|
||||
private SimpleObjectProperty<LegacyAddress> address = new SimpleObjectProperty<>();
|
||||
private SimpleObjectProperty<Coin> balance = new SimpleObjectProperty<>(Coin.ZERO);
|
||||
private SimpleDoubleProperty syncProgress = new SimpleDoubleProperty(-1);
|
||||
private ProgressBarUpdater syncProgressUpdater = new ProgressBarUpdater();
|
||||
@@ -77,7 +77,7 @@ public class BitcoinUIModel {
|
||||
|
||||
public ReadOnlyDoubleProperty syncProgressProperty() { return syncProgress; }
|
||||
|
||||
public ReadOnlyObjectProperty<Address> addressProperty() {
|
||||
public ReadOnlyObjectProperty<LegacyAddress> addressProperty() {
|
||||
return address;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user