Decoupled domain records change from domain renewal.

This commit is contained in:
Revertron
2022-04-13 13:02:58 +02:00
parent 90c5ba7e83
commit 5b5943a4aa
8 changed files with 112 additions and 55 deletions
+8 -1
View File
@@ -204,7 +204,7 @@
<div class="modal-content">
<div class="box" id="new_domain_dialog_box">
<button class="delete" aria-label="close" onclick="closeDialog('new_domain_dialog')"></button>
<label class="label">New domain:</label>
<label class="label">Domain name:</label>
<div class="field is-grouped is-fullwidth">
<div class="control field has-addons is-expanded">
<div class="control is-expanded has-icons-left">
@@ -265,6 +265,13 @@
<div class="list mt-2" id="domain_records">
<!-- Here will be our domain records, added by dialog -->
</div>
<div class="field mt-3">
<label class="control">
<input type="checkbox" id="renewal"> Renew domain by using higher difficulty while mining (works after block number 4999, until then it does nothing).
</label>
<p class="help">Starting from block 5000 the change of DNS records is decoupled from domain renewal.</p>
</div>
</div>
</div>
</div>
+2 -1
View File
@@ -302,8 +302,9 @@ function createDomain() {
data.info = document.getElementById("info_text").value;
data.records = recordsBuffer;
data.contacts = getContacts();
var renewal = document.getElementById("renewal").checked;
data = JSON.stringify(data);
external.invoke(JSON.stringify({cmd: 'mineDomain', name: domain, data: data, signing: ownerSigning, encryption: ownerEncryption}));
external.invoke(JSON.stringify({cmd: 'mineDomain', name: domain, data: data, signing: ownerSigning, encryption: ownerEncryption, renewal: renewal}));
}
function getContacts() {