support for total difficulty (needed to support some eth endpoints)

This commit is contained in:
Ian Norden
2020-01-24 15:37:52 -06:00
parent 358575335b
commit 0785507a7d
14 changed files with 118 additions and 113 deletions
@@ -5,6 +5,7 @@ CREATE TABLE public.header_cids (
block_hash VARCHAR(66) NOT NULL,
cid TEXT NOT NULL,
uncle BOOLEAN NOT NULL,
td BIGINT NOT NULL,
UNIQUE (block_number, block_hash)
);
+3 -4
View File
@@ -3,7 +3,7 @@
--
-- Dumped from database version 10.10
-- Dumped by pg_dump version 11.5
-- Dumped by pg_dump version 12.1
SET statement_timeout = 0;
SET lock_timeout = 0;
@@ -18,8 +18,6 @@ SET row_security = off;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: addresses; Type: TABLE; Schema: public; Owner: -
--
@@ -316,7 +314,8 @@ CREATE TABLE public.header_cids (
block_number bigint NOT NULL,
block_hash character varying(66) NOT NULL,
cid text NOT NULL,
uncle boolean NOT NULL
uncle boolean NOT NULL,
td bigint NOT NULL
);