Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AW-115 - Fix History loading for seeded accounts#101

Merged
theotniel merged 2 commits into
devfrom
AW-115
Jun 15, 2018
Merged

AW-115 - Fix History loading for seeded accounts#101
theotniel merged 2 commits into
devfrom
AW-115

Conversation

@theotniel
Copy link
Copy Markdown
Contributor

No description provided.

if (AccountEvent.Type.UNLOCKED.equals(event.getType())) {
this.account = event.getAccount();
this.account = event.getPayload();
// unlockPassword.requestFocus();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment

final String address = addressIterator.next();
final BlockDTO lastSafeBlock = getAccountManager().getLastSafeBlock(address);
if (lastSafeBlock != null) {
if (oldestSafeBlock == null) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be refactored into oldestSafeBlock == null || oldestSafeBlock.getNumber() > lastSafeBlock.getNumber()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

@Override
public void initialize(final URL location, final ResourceBundle resources) {
registerEventBusConsumer();
Platform.runLater(() -> unlockPassword.requestFocus());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this one

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is my single most satisfying feature

private static final String AION_LOGO = "components/icons/aion-icon.png";

private final BlockchainConnector blockchainConnector = BlockchainConnector.getInstance();
private static final String LOCAL_DIR = System.getProperty("user.dir");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't this be local.storage.dir ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually no, beacuse this is where the app is started from, so we need this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants