-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
aac7832
to
ee83fb2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK 9a94bfe
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]>
Signed-off-by: Mihai Ciumeica <[email protected]>
Signed-off-by: Mihai Ciumeica <[email protected]>
9a94bfe
to
d44f2a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 8d7ccdf
self.extra_args = [[]] * 4 | ||
self.extra_args[0] = ['-deprecatedrpc=accounts'] | ||
self.extra_args = [['-mocktime=1500000000']] * 4 | ||
self.extra_args[0] += ['-deprecatedrpc=accounts'] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK d44f2a1
2c0a0ed
to
d44f2a1
Compare
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 allowssorting by the timestamp field, either in ascending or descending order.
Required for sorting addresses by date in a desktop wallet.