mirror of https://github.com/m2049r/xmrwallet.git
mainnet spending
This commit is contained in:
parent
c66ebd654a
commit
3846a0c391
|
@ -99,10 +99,6 @@ public class SendFragment extends Fragment {
|
|||
etPaymentId.setRawInputType(InputType.TYPE_CLASS_TEXT);
|
||||
etNotes.setRawInputType(InputType.TYPE_CLASS_TEXT);
|
||||
|
||||
// etAddress.setText("9tDC52GsMjTNt4dpnRCwAF7ekVBkbkgkXGaMKTcSTpBhGpqkPX56jCNRydLq9oGjbbAQBsZhLfgmTKsntmxRd3TaJFYM2f8");
|
||||
boolean testnet = WalletManager.getInstance().isTestNet();
|
||||
if (!testnet) throw new IllegalStateException("Sending TX only on testnet. sorry.");
|
||||
|
||||
Helper.showKeyboard(getActivity());
|
||||
etAddress.requestFocus();
|
||||
etAddress.setOnEditorActionListener(new TextView.OnEditorActionListener() {
|
||||
|
|
|
@ -122,7 +122,7 @@ public class WalletFragment extends Fragment implements TransactionInfoAdapter.O
|
|||
}
|
||||
|
||||
public void onSynced() {
|
||||
if (!activityCallback.isWatchOnly() && WalletManager.getInstance().isTestNet()) {
|
||||
if (!activityCallback.isWatchOnly()) {
|
||||
bSend.setVisibility(View.VISIBLE);
|
||||
bSend.setEnabled(true);
|
||||
}
|
||||
|
|
|
@ -341,10 +341,6 @@ public class WalletService extends Service {
|
|||
} else if (cmd.equals(REQUEST_CMD_SEND)) {
|
||||
Wallet myWallet = getWallet();
|
||||
Log.d(TAG, "SEND TX for wallet: " + myWallet.getName());
|
||||
if (!myWallet.isTestNet()) {
|
||||
Log.e(TAG, "Sending transactions only on testnet");
|
||||
throw new IllegalStateException("Sending transactions only in testnet");
|
||||
}
|
||||
PendingTransaction pendingTransaction = myWallet.getPendingTransaction();
|
||||
if (pendingTransaction.getStatus() != PendingTransaction.Status.Status_Ok) {
|
||||
Log.e(TAG, "PendingTransaction is " + pendingTransaction.getStatus());
|
||||
|
|
Loading…
Reference in New Issue