-
I have managed to successfully compile the library, and to generate a public and private key for the node I want to use as the blockchain administrator. I have moved from using the sqlite shell to using the library in go itself. I am opening my database with the following:
I am then running a PRAGMA blockchain_status to see if my node meant to be my blockchain administrator is authorized. I see the following: `{ "blockchain": { "node": { "mempool": { "network": { "downstream_state": "unknown", The node appears as unauthorized. I know that I'm supposed to use PRAGMA add_node to add new_nodes, but how do I get the first one to be authorized? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is no "admin node". There is an "admin user". This means that the blockchain administrator can manage the network from any of the participating nodes. At least after the network is started. At bootstrapping (initial setup): The first node to be authorized must be the one in which the command is being executed. In your case you get the pubkey from the blockchain_status, and then construct an
Then you can authorize other nodes on the network. For this you run This must be done in a node that are already authorized. The above command will call the transaction signature callback function ( |
Beta Was this translation helpful? Give feedback.
There is no "admin node". There is an "admin user".
This means that the blockchain administrator can manage the network from any of the participating nodes. At least after the network is started.
At bootstrapping (initial setup):
The first node to be authorized must be the one in which the command is being executed.
In your case you get the pubkey from the blockchain_status, and then construct an
add_node
command:Then you can authorize other nodes on the network.
For this you run
pragma nodes
to list them, and thenpragma add_node
This must be done in a node that are already authorized.
The above command will call th…