on master help sign in
generate keyfile as part of network key tx

We generate the keyfile as part of the network key transaction to hopefully prevent downloading stale. Hopefully mitigates #346 and #137 although I am unable to reproduce it.

commit96a4b456e2cb697de017bffa57fd440a0bf9ae3b authorLiam Fitzgerald <liam@urizen.co> dateWed 25 Mar 2020, 08:44 (7 years ago) parent68be2c4
1 file changed+2−1
src/views/UrbitOS/NetworkingKeys.js+2−1
src/views/UrbitOS/NetworkingKeys.js+2−1
@@ -52,6 +52,7 @@ function useSetKeys(manualNetworkSeed, setManualNetworkSeed) {
5252
5353 const {
5454 available: keyfileAvailable,
55+ generating: keyfileGenerating,
5556 filename,
5657 bind: keyfileBind,
5758 } = useKeyfileGenerator(manualNetworkSeed);
@@ -118,7 +119,7 @@ function useSetKeys(manualNetworkSeed, setManualNetworkSeed) {
118119 );
119120
120121 // only treat the transaction as completed once we also have keys to download
121− const completed = _completed && keyfileAvailable;
122+ const completed = _completed && keyfileAvailable && !keyfileGenerating;
122123
123124 return {
124125 completed,