Datastore group (usually key-value) with atomic changes that can be synchronized over the network. In other words, it is an aggregate of databases (installed and functioning on different network nodes), synchronizing common data with each other, according to a certain protocol - and thus constituting one large distributed “global” database.
Note
A key can be a node address, hash of the order, hash of the datum. A list of actual keys belonged to your network can be acquired using GLOBAL_DB GET_KEYS command
GDB is the basic subsystem of the Cellframe network. Each node in the network uses it to synchronize data shared with other nodes.
A special section of the GDB, called Mempool, serves for temporary placement of consensus (and not only) chains data that appear in the network, until they are approved by the consensus algorithm - and placed in a stable, unchangeable subsequently Chain.
In No-consensus mode, the chain data itself is also stored in the Global Database (GDB).
Commands for GDB groups management - GLOBAL_DB. Node Commands
GDB groups
These groups are different tables which store information about nodes, theirs states, orders, mempool. Groups can be global and local. Global groups are synchronized all over the network, while local groups exist only on the user’s machine.
Here is the example of global and local GDB groups for foobar network:
group list: GLOBAL
#rounds
dag-foobar-zerochain-round.new: 0 (rounds)
#mempool
foobar.chain-main.mempool: 0 (mainchain mempool)
foobar.chain-zerochain.mempool: 13 (zerochain mempool)
#node list
foobar.nodes.list: 6 (nodes in the node list)
foobar.nodes.states: 6 (states of the nodes in the node list)
#orders
foobar.service.orders: 4 (orders for provided services)
LOCAL
#general
local.general: 1 (general local group)
#ledger cache
local.ledger-cache.foobar.balances: 0 (balances)
local.ledger-cache.foobar.delegate_keys: 0 (delegated keys)
local.ledger-cache.foobar.emissions: 0 (emissions in the network)
local.ledger-cache.foobar.spent_txs: 0 (spent transactions)
local.ledger-cache.foobar.stake_lock: 0 (staked tokens)
local.ledger-cache.foobar.tokens: 0 (tokens)
local.ledger-cache.foobar.txs: 0 (transactions)
local.nodes.heated.0x0000000000abcdef: 5 ()