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.

commitac0299eb0541a8ee98bb59691b6e1f17ab78ce14 authorLiam Fitzgerald <liam@urizen.co> dateTue 24 Mar 2020, 17:39 (7 years ago) parent6314cef
1 file changed+2−1
src/views/Admin/AdminNetworkingKeys.js+2−1
src/views/Admin/AdminNetworkingKeys.js+2−1
@@ -74,6 +74,7 @@ function useSetKeys() {
7474
7575 const {
7676 available: keyfileAvailable,
77+ generating: keyfileGenerating,
7778 filename,
7879 bind: keyfileBind,
7980 } = useKeyfileGenerator(ndNetworkSeed);
@@ -133,7 +134,7 @@ function useSetKeys() {
133134 );
134135
135136 // only treat the transaction as completed once we also have keys to download
136− const completed = _completed && keyfileAvailable;
137+ const completed = _completed && keyfileAvailable && !keyfileGenerating;
137138
138139 return {
139140 completed,