Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Problem:(CRO-540) syncing does not work in HD wallet #586

Merged
merged 1 commit into from
Nov 18, 2019

Conversation

leejw51
Copy link
Contributor

@leejw51 leejw51 commented Nov 13, 2019

Solution: add private, public keys to storage

@codecov
Copy link

codecov bot commented Nov 13, 2019

Codecov Report

Merging #586 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #586      +/-   ##
==========================================
+ Coverage   67.42%   67.43%   +<.01%     
==========================================
  Files         125      125              
  Lines       14700    14704       +4     
==========================================
+ Hits         9912     9916       +4     
  Misses       4788     4788
Impacted Files Coverage Δ
client-core/src/wallet/default_wallet_client.rs 59.76% <100%> (+0.63%) ⬆️

Copy link
Contributor

@tomtau tomtau left a comment

Choose a reason for hiding this comment

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

Seems in #585 , there are no tests that would make use of syncing (e.g. transfer from one HD wallet to another) to demonstrate it works, so it'll be good to add a test that does that... if you plan to add that test in the same test suite as what's in #585 , we can wait until that PR is merged

Copy link
Collaborator

@calvinaco calvinaco left a comment

Choose a reason for hiding this comment

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

Looks good to me. If I remember correctly, there is the same PR last time?

@leejw51crypto
Copy link
Collaborator

leejw51crypto commented Nov 14, 2019

yes,
it's in another PR (CRO-542)
i will work on that PR first.

@leejw51crypto
Copy link
Collaborator

viewkey == transfer address[0]

Solution: add private, public keys to storage
use viewkey with utxo[0]


add hdwallet autosync integration test
Copy link
Contributor

@tomtau tomtau left a comment

Choose a reason for hiding this comment

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

bors r+

bors bot added a commit that referenced this pull request Nov 18, 2019
586: Problem:(CRO-540) syncing does not work in HD wallet r=tomtau a=leejw51

Solution: add private, public keys to storage

Co-authored-by: jongwhan lee <leejw51@gmail.com>
@tomtau
Copy link
Contributor

tomtau commented Nov 18, 2019

the build may fail due to #595

@bors
Copy link
Contributor

bors bot commented Nov 18, 2019

Build failed

@tomtau
Copy link
Contributor

tomtau commented Nov 18, 2019

bors retry

bors bot added a commit that referenced this pull request Nov 18, 2019
584: Problem: client can't trust validators field in genesis api (CRO-101) r=tomtau a=yihuang

Solution:
Validate validators in ``RequestInitChain``, make sure the consistency.

586: Problem:(CRO-540) syncing does not work in HD wallet r=tomtau a=leejw51

Solution: add private, public keys to storage

Co-authored-by: yihuang <huang@crypto.com>
Co-authored-by: jongwhan lee <leejw51@gmail.com>
@bors
Copy link
Contributor

bors bot commented Nov 18, 2019

@bors bors bot merged commit dce5ad1 into crypto-com:master Nov 18, 2019
bors bot added a commit that referenced this pull request Oct 8, 2020
2271: Bump cbindgen from 0.14.6 to 0.15.0 r=tomtau a=dependabot-preview[bot]

Bumps [cbindgen](https://github.com/eqrion/cbindgen) from 0.14.6 to 0.15.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/eqrion/cbindgen/blob/master/CHANGES">cbindgen's changelog</a>.</em></p>
<blockquote>
<h2>0.15.0</h2>
<pre><code> * Allow customizing mangling of generic parameters in C ([#575](mozilla/cbindgen#575))
 * Box&lt;T&gt; simplifies to T* in C (4ce324c)
 * ManuallyDrop&lt;T&gt; and MaubeUninit&lt;T&gt; simplify to T in C, and are opaque in C++ (0076a17)
 * C++ supports a derive-ostream annotation to derive serialization of structs, unions and enums ([#582](mozilla/cbindgen#582))
 * Large character constants have been fixed on Windows ([#586](mozilla/cbindgen#586))
 * Constants are now generated for typedefs, etc ([#589](mozilla/cbindgen#589))
 * The `sort_by` configuration option has been made to work for constants ([#587](mozilla/cbindgen#587))
 * Default sort order is source order now (sort_by = &quot;None&quot;), and can be changed by the above option ([#587](mozilla/cbindgen#587))
</code></pre>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/eqrion/cbindgen/commit/83b3be9f884697a51f8717af8b5498866a81e62e"><code>83b3be9</code></a> v0.15.0</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/aeb69bcc6941b37a0d0acfa1ed77d4ccdf1cccc9"><code>aeb69bc</code></a> Switch default sorting order for items to &quot;None&quot;</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/ea919a4edfdfc62af0f84a3f796a2c072d469e8a"><code>ea919a4</code></a> <code>mem::replace</code> -&gt; <code>mem::take</code></li>
<li><a href="https://github.com/eqrion/cbindgen/commit/f3d5a20363be93c4d38324b7b7928db71158c27e"><code>f3d5a20</code></a> Support <code>sort_by</code> for constants</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/6439e6df563786d8f834579a00ffd5c418244cd3"><code>6439e6d</code></a> Support constants with arbitrary types</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/9669cadf6076df4a77246b9d1dedb5b261cf478a"><code>9669cad</code></a> Rename ARCHITECTURE.md to internals.md in contributing instructions</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/56d0799366f58b1fa7c96524da576245b1f0a57d"><code>56d0799</code></a> Use <code>U'...'</code> character literals instead of <code>L'...'</code> character literals</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/f4b26fef2a7625cc49915d8f4b620d3365a9feb6"><code>f4b26fe</code></a> Checkout files with LF line endings</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/d1d97d44820b406bbeba662c8d5d6ffdd020a6bd"><code>d1d97d4</code></a> enumeration: Only propagate derive_ostream annotation if not present.</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/36a3f8ba6e2cda3e224155a7f14754506f006a71"><code>36a3f8b</code></a> enumertion: Add a using declaration rather than qualifying all branches.</li>
<li>Additional commits viewable in <a href="https://github.com/eqrion/cbindgen/compare/v0.14.6...v0.15.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=cbindgen&package-manager=cargo&previous-version=0.14.6&new-version=0.15.0)](https://dependabot.com/compatibility-score/?dependency-name=cbindgen&package-manager=cargo&previous-version=0.14.6&new-version=0.15.0)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)



</details>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants