666c11cc28
* Start ephemera components in nym-api * Pass nyxd client and use common metric structures * Swap url endpoint with contract for sending rewarding messages * Fix build after rebase * Perform ephemera rewards computation before normal nym-api ones * Remove contract mock from ephemera * Take raw rewards from network monitor * Remove ephemera old reward version * Use nym shutdown procedure in ephemera * Temporary fix for some warnings
19 lines
564 B
SQL
19 lines
564 B
SQL
CREATE TABLE contract_mixnode_reward
|
|
(
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
mix_id INTEGER NOT NULL,
|
|
epoch INTEGER NOT NULL,
|
|
nym_api_id INTEGER NOT NULL,
|
|
reliability INTEGER NOT NULL,
|
|
timestamp INTEGER NOT NULL,
|
|
UNIQUE (mix_id, epoch)
|
|
);
|
|
|
|
CREATE TABLE epoch_info
|
|
(
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
epoch_id INTEGER NOT NULL,
|
|
start_time INTEGER NOT NULL,
|
|
duration INTEGER NOT NULL,
|
|
UNIQUE (epoch_id)
|
|
); |