Impl historyDB methods for sync main loop

This commit is contained in:
Arnau B
2020-08-25 17:47:23 +02:00
parent c108739c24
commit 3e7173b1da
6 changed files with 170 additions and 55 deletions

View File

@@ -8,7 +8,6 @@ CREATE TABLE block (
CREATE TABLE coordianator (
forger_addr BYTEA NOT NULL,
eth_block_num BIGINT NOT NULL REFERENCES block (eth_block_num) ON DELETE CASCADE,
beneficiary_addr BYTEA NOT NULL,
withdraw_addr BYTEA NOT NULL,
url VARCHAR(200) NOT NULL,
PRIMARY KEY (forger_addr, eth_block_num)