Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timestamps for address book entries #1060

Merged
merged 7 commits into from
May 8, 2019

Conversation

cmihai
Copy link
Member

@cmihai cmihai commented May 3, 2019

This pull request extends the CAddressBookData structure with a new field,
timestamp, representing the time when a Unit-e address was created or modified.

It also adds a new argument to the filteraddresses RPC call, which allows
sorting by the timestamp field, either in ascending or descending order.

Required for sorting addresses by date in a desktop wallet.

@cmihai cmihai added feature New functionality wallet labels May 3, 2019
@cmihai cmihai self-assigned this May 3, 2019
@cmihai cmihai force-pushed the address-order-by-date branch 4 times, most recently from aac7832 to ee83fb2 Compare May 7, 2019 09:53
@cmihai cmihai requested a review from a team May 7, 2019 09:57
@cmihai cmihai marked this pull request as ready for review May 7, 2019 09:57
src/wallet/wallet.cpp Outdated Show resolved Hide resolved
Copy link
Member

@scravy scravy left a comment

Choose a reason for hiding this comment

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

Concept ACK 9a94bfe

cmihai added 7 commits May 7, 2019 14:43
This commit extends the `CAddressBookData` structure with a new field,
`timestamp`, representing the creation or modification time of the address.

It also adds a new argument to the `filteraddresses` RPC call, which allows
sorting by the timestamp field, either in ascending or descending order.

Required for implementing dtr-org/unit-e-desktop#57.

Signed-off-by: Mihai Ciumeica <[email protected]>
Signed-off-by: Mihai Ciumeica <[email protected]>
Signed-off-by: Mihai Ciumeica <[email protected]>
Signed-off-by: Mihai Ciumeica <[email protected]>
Signed-off-by: Mihai Ciumeica <[email protected]>
@Gnappuraz Gnappuraz self-requested a review May 8, 2019 07:57
Copy link
Member

@Gnappuraz Gnappuraz left a comment

Choose a reason for hiding this comment

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

utACK 8d7ccdf

@cmihai cmihai requested a review from castarco May 8, 2019 10:14
self.extra_args = [[]] * 4
self.extra_args[0] = ['-deprecatedrpc=accounts']
self.extra_args = [['-mocktime=1500000000']] * 4
self.extra_args[0] += ['-deprecatedrpc=accounts']
Copy link

Choose a reason for hiding this comment

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

nit: When appending one single element, it's better to rely on append than on extend:

self.extra_args[0].append('-deprecatedrpc=accounts')

Although it's also OK as it is now.

Copy link

@castarco castarco left a comment

Choose a reason for hiding this comment

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

utACK d44f2a1

@cmihai cmihai merged commit 84ad3b5 into dtr-org:master May 8, 2019
@cmihai cmihai deleted the address-order-by-date branch May 8, 2019 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality wallet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants