建议

建议 #165

Business Continuity Plan for DPoS nodes (Stand-By CR Nodes)

状态

第 1 步,共 3 步下一步:提出

Abstract

Elastos Mainchain consensus mechanism is Auxiliary Proof of Work and Delegated Proof of Stake (AuxPoW + DPoS) which means that miners mine blocks (currently representing 50%+ of Bitcoin miners) and blocks are then validated by DPoS nodes also known as Supernodes. For blockchain to work, 36 DPoS nodes have to be active and running on the latest version of SW. 12 out of these 36 nodes are run by CR Council members (let's call them CR nodes) and 24 are community DPoS nodes. In this suggestion, we are proposing a plan on what to do when the number of community DPoS nodes drop below critical level, which would lead to halt of the Elastos Mainchain.

Goal

The goal we will achieve by implementing this proposal is to keep Elastos Mainchain up and running at all times. We achieve it by replacing community DPoS nodes that go for any reason offline or into inactive state with Stand-By CR nodes (SB nodes) to keep the overall number of DPoS nodes always above critical level.

Critical level of DPoS nodes is 25 (12 CR node + 13 community DPoS nodes).

Motivation

The value of Elastos lies within its infrastructure and the mainchain is a crucial part of it. We must keep the mainchain alive at all times.

Plan introduction

Preparation:

  1. CR will order services from a service provider to provide up to 12 SB nodes. It is up to the service provider to define its strategy. CR requirements for the services are:
    • Keep the number of active community DPoS nodes at 20 (excluding 12 CR nodes), unless all 12 SB nodes have been activated (API monitoring)
    • Following Elastos components must be activated on SB node:
      • Elastos Mainchain (ELA) - required
      • Arbiter - optional
      • Carrier - optional
    • Required time to provide public key of fully synchronized SB node to CR Secretariat upon request is 12 hours (SLA)
    • Termination of BCP program with 1 month notice period
  2. 12 new wallets will be created in Elastos Essentials by the CR Secretariat (guide (opens in a new tab))

Activation of a SB node:

Activation of SB node can be triggered multiple times

  1. The service provider (API monitoring trigger) or CR Council initiate SB node activation via defined communication channel
  2. Milestone withdrawal request will be triggered by the proposer of this suggestion (MButcho ● Nenchy).
  3. CR Secretariat will approve the Withdrawal request and receive 5 005 ELA per milestone to its ELA address defined in this suggestion
  4. CR Secretariat will send 5 005 ELA to one of the dedicated wallets created in step 2 in Preparation section.
  5. CR Secretariat will request public key from the service provider and then claim DPoS node with the dedicated wallet via Elastos Essentials
  6. CR Secretariat will vote SB node with remaining balance in dedicated wallet
  7. SB node is now fully functional

Deactivation of a SB node:

Deactivation of SB node can be triggered multiple times

  1. When the number of all community DPoS nodes raises above 20, a request to deactivate node will be triggered either by the service provider (API monitoring trigger) or by the CR Council via defined communication channel
  2. CR Secretariat will cancel SB node via Elastos Essentials
  3. Once 5 000 ELA is returned to the wallet (2160 blocks / around 72 hours), CR Secretariat will send public key of the canceled SB node to the service provider to deactivate SB node
  4. CR Secretariat will send full balance (~5 005) ELA back to its ELA address defined in this suggestion

Requesting more than 12 SB nodes:

  • Due to limitation of using max. 10% ELA of CREXPENSESXXXXXXXXXXXXXXXXXX4UdT6b funds per proposal, this suggestion will only include funding for activating 12 SB nodes. In case more than 12 SB nodes are needed, new suggestion for extra SB nodes will be proposed along with extra hosting and maintenance fees.

End of 12 months term:

  • In 12 months, all remaining milestones will be withdrawn to CR Secretariat ELA address defined in this suggestion and then returned to CREXPENSESXXXXXXXXXXXXXXXXXX4UdT6b and new suggestion for next 12 months term should be approved as continuation (considering the number of activated SB nodes at the end of term).

BCP program termination:

  • CR Council can terminate the BCP program at any time and the service provider will cease its activities at the end of following month. All active SB nodes will be deactivated, all remaining milestones will be withdrawn and all funds from CR Secretariat ELA address defined in this suggestion will be returned to CREXPENSESXXXXXXXXXXXXXXXXXX4UdT6b to be available for next proposals.

Budget introduction

Calculation of hosting and maintenance fee:

Hosting fee (estimate)

  • VM requirement: 2+ CPU, 16+ GB RAM, 100+ GB SSD
  • 12 SB nodes * 10 USD * 6 months = 720 USD for 12 nodes for 6 months offline
  • 6 SB nodes * 10 USD * 3 months = 180 USD for 6 nodes for 3 months offline
  • 6 SB nodes * 0.113 USD * 24 hod * (365/4) = 1 484.82 USD for 6 nodes for 3 months online
  • 12 SB nodes * 0.113 USD * 24 hod * (365/4) = 2 969.64 USD for 12 nodes for 3 months online
  • Yearly Hosting fee (estimate): 5 354.46 USD (3 569 ELA @ 1.5 USD per ELA will be requested from CR)
  • Monthly hosting fee will be calculated based on the number of active SB nodes in a previous month. Calculation examples:
    • 0 active SB nodes = 120 USD / month
    • 4 active SB nodes = 409.96 USD / month (8 nodes * 10 USD = 80 USD + 4 * 0.113 USD * 24 hod * (365/12) = 329.96 USD)
    • 12 active SB nodes = 989.88 USD / month (12 * 0.113 USD * 24 hod * (365/12) = 1 979.76 USD)

Maintenance fee

  • Yearly Maintenance fee = 9 948 USD (6 632 ELA @ 1.5 USD per ELA will be requested from CR)
  • Monthly Maintenance fee = 829 USD

Total: 3 569 + 6 632 ELA = 10 201 ELA

Considerations:

  • All rewards from SB nodes will be sent to CREXPENSESXXXXXXXXXXXXXXXXXX4UdT6b
  • The service provider will be paid monthly with funds from Milestone #1 - Project Initiation Payment in USDT (or equivalent) by CR Secretariat (min 120 USDT / max 989.88 USDT for hosting based on number of active SB nodes during previous month + 829 USDT maintenance fee). Service provider will send a report to the CR Secretariat at the end of each month with the status of SB nodes. Based on report, CR Secretariat will swap ELA to USDT or equivalent and send to wallet of service provider
  • API code for monitoring to be implemented by the service provider to retrieve variable "totalcounts" which represents the number of active community DPoS nodes:
    curl --silent --location --request POST 'https://api.trinity-tech.io/ela' \
    --header 'Content-Type: application/json' \
    --data-raw '{ "method": "listproducers","params": {"state": "active"}}' | jq '.result.totalcounts'
    

Budget amount

70261

Plan

Milestone goalDate

12 month estimation for hosting 24 SB nodes and maintenance fee

2022-07-31T22:00:00.423Z

Stand-By CR node #1

2022-07-31T22:00:00.423Z

Stand-By CR node #2

2022-07-31T22:00:00.423Z

Stand-By CR node #3

2022-07-31T22:00:00.423Z

Stand-By CR node #4

2022-07-31T22:00:00.423Z

Stand-By CR node #5

2022-07-31T22:00:00.423Z

Stand-By CR node #6

2022-07-31T22:00:00.423Z

Stand-By CR node #7

2022-07-31T22:00:00.423Z

Stand-By CR node #8

2022-07-31T22:00:00.423Z

Stand-By CR node #9

2022-07-31T22:00:00.423Z

Stand-By CR node #10

2022-07-31T22:00:00.423Z

Stand-By CR node #11

2022-07-31T22:00:00.423Z

Stand-By CR node #12

2022-07-31T22:00:00.423Z

Stand-By CR node #13

2022-07-31T22:00:00.423Z

Stand-By CR node #14

2022-07-31T22:00:00.423Z

Stand-By CR node #15

2022-07-31T22:00:00.423Z

Stand-By CR node #16

2022-07-31T22:00:00.423Z

Stand-By CR node #17

2022-07-31T22:00:00.423Z

Stand-By CR node #18

2022-07-31T22:00:00.423Z

Stand-By CR node #19

2022-07-31T22:00:00.423Z

Stand-By CR node #20

2022-07-31T22:00:00.423Z

Stand-By CR node #21

2022-07-31T22:00:00.423Z

Stand-By CR node #22

2022-07-31T22:00:00.423Z

Stand-By CR node #23

2022-07-31T22:00:00.423Z

Stand-By CR node #24

2022-07-31T22:00:00.423Z

2 weeks before 12 months term, new continual suggestion should be proposed (2 weeks before the end of term at latest)

2023-07-14T22:00:00.423Z

Budget

TypeMilestoneAmountCriteria

ADVANCE

0

10201

Withdrawal requested after the proposal passes

CONDITIONED

1

5005

Requested when Stand-By CR node #1 is needed

CONDITIONED

2

5005

Withdrawal requested when Stand-By CR node #2 is needed

CONDITIONED

3

5005

Withdrawal requested when Stand-By CR node #3 is needed

CONDITIONED

4

5005

Withdrawal requested when Stand-By CR node #4 is needed

CONDITIONED

5

5005

Withdrawal requested when Stand-By CR node #5 is needed

CONDITIONED

6

5005

Withdrawal requested when Stand-By CR node #6 is needed

CONDITIONED

7

5005

Withdrawal requested when Stand-By CR node #7 is needed

CONDITIONED

8

5005

Withdrawal requested when Stand-By CR node #8 is needed

CONDITIONED

9

5005

Withdrawal requested when Stand-By CR node #9 is needed

CONDITIONED

10

5005

Withdrawal requested when Stand-By CR node #10 is needed

CONDITIONED

11

5005

Withdrawal requested when Stand-By CR node #11 is needed

CONDITIONED

12

5005

Withdrawal requested when Stand-By CR node #12 is needed

CONDITIONED

13

0

Withdrawal requested when Stand-By CR node #13 is needed

CONDITIONED

14

0

Withdrawal requested when Stand-By CR node #14 is needed

CONDITIONED

15

0

Withdrawal requested when Stand-By CR node #15 is needed

CONDITIONED

16

0

Withdrawal requested when Stand-By CR node #16 is needed

CONDITIONED

17

0

Withdrawal requested when Stand-By CR node #17 is needed

CONDITIONED

18

0

Withdrawal requested when Stand-By CR node #18 is needed

CONDITIONED

19

0

Withdrawal requested when Stand-By CR node #19 is needed

CONDITIONED

20

0

Withdrawal requested when Stand-By CR node #20 is needed

CONDITIONED

21

0

Withdrawal requested when Stand-By CR node #21 is needed

CONDITIONED

22

0

Withdrawal requested when Stand-By CR node #22 is needed

CONDITIONED

23

0

Withdrawal requested when Stand-By CR node #23 is needed

CONDITIONED

24

0

Withdrawal requested when Stand-By CR node #24 is needed

COMPLETION

25

0

No payment

登录后可另存为草稿 将创建一份私人草稿,保存之前不会存储任何内容。

回到顶部

语言