mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-26 11:53:31 +03:00
fix?? reset node
This commit is contained in:
parent
b6bb9d8dd5
commit
cc3b49d3af
@ -22,6 +22,7 @@ function ResetKnsName({
|
||||
setDirect,
|
||||
setReset,
|
||||
knsName,
|
||||
setKnsName,
|
||||
setNetworkingKey,
|
||||
setIpAddress,
|
||||
setWsPort,
|
||||
@ -74,6 +75,8 @@ function ResetKnsName({
|
||||
return;
|
||||
}
|
||||
|
||||
setKnsName(name + ".os");
|
||||
|
||||
try {
|
||||
const data = await generateNetworkingKeys({
|
||||
direct,
|
||||
|
@ -132,7 +132,7 @@ function SetPassword({
|
||||
<form className="form" onSubmit={handleSubmit}>
|
||||
<div className="form-group">
|
||||
<Tooltip text="This password will be used to log in when you restart your node or switch browsers.">
|
||||
<label className="form-label" htmlFor="password">Set Password</label>
|
||||
<label className="form-label" htmlFor="password">Set password for {knsName}</label>
|
||||
</Tooltip>
|
||||
<input
|
||||
type="password"
|
||||
|
@ -386,6 +386,9 @@ async fn handle_boot(
|
||||
.recover_address_from_prehash(&hash)
|
||||
.map_err(|_| warp::reject())?;
|
||||
|
||||
println!("recovered_address: {}", recovered_address);
|
||||
println!("owner: {}", owner);
|
||||
|
||||
if recovered_address != owner {
|
||||
attempts += 1;
|
||||
tokio::time::sleep(tokio::time::Duration::from_secs(2)).await;
|
||||
|
Loading…
Reference in New Issue
Block a user