Ian Norden
74752d15aa
remove diff unique connstraint, overwrite as diff
2020-08-07 23:17:11 -05:00
Ian Norden
77490e8b4b
add diff field to db constraint
2020-08-04 22:35:02 -05:00
Ian Norden
18299c76e2
refactor migrations for new db instance, add mh_key rows
2020-07-13 10:39:51 -05:00
Ian Norden
0ab55ef9d8
distinguish between differential state/storage nodes and eventual ones
2020-07-01 13:44:04 -05:00
Ian Norden
fe083c12f9
trimming down to ipfs watchers
2020-05-29 22:02:47 -05:00
Ian Norden
f2e853e9c9
add back raw contract address
2020-04-04 15:45:55 -05:00
Ian Norden
8960cde4f7
backfill based on validation level
2020-04-04 15:45:54 -05:00
Ian Norden
060e3430c1
times_validated field in header
2020-04-04 15:45:54 -05:00
Ian Norden
834e2bcff4
additional logging to resync service; rename state/storage key to leaf key and allow insert of null values for intermediate nodes
2020-03-25 19:16:26 -05:00
Ian Norden
ba5d6f9b9f
state account support and add roots and additional metadata to header
...
index
2020-03-21 20:57:02 -05:00
Ian Norden
e5c5422edc
adhjustments to work with statediffing geth v1.10-alpha.2
2020-03-11 13:41:59 -05:00
Ian Norden
25aa4634e9
work on wasm watchers
2020-02-24 12:54:10 -06:00
Ian Norden
ef3b043f97
emulate btc data streamer over http; misc fixes
2020-02-20 16:14:17 -06:00
Ian Norden
5173edf563
fix broken go-ipld-eth trie node dag putters
2020-02-20 16:14:17 -06:00
Ian Norden
ca273a026d
major refactor part 2: remove cold import, full sync, generalize node table
2020-02-20 16:14:17 -06:00
Ian Norden
5d46e02509
tx inputs directly reference tx ouputs
2020-02-20 16:14:17 -06:00
Ian Norden
642e08a04b
btc converter, publisher, and indexer unit tests
2020-02-20 16:14:17 -06:00
Ian Norden
f33cc3f34b
TxOutputs: extract and index pkscript metadata (script type, addresses, #required sigs); TxInputs: outpoint_hash => outpoint_tx_id that references transaction_cids.id
2020-02-20 16:14:17 -06:00
Ian Norden
5094b975fc
postgres schema and tables for btc
2020-02-20 16:14:17 -06:00
Ian Norden
9018e551ba
move eth tables under eth schema
2020-02-20 16:14:17 -06:00
Ian Norden
33ac5978f5
split uncles into their own table; add tx index to the tx index (lol); continue work on geth api endpoints
2020-01-27 14:14:03 -06:00
Ian Norden
e52284b9ba
update documentation, bug/error fixes, work on eth api for drawbridge
2020-01-24 15:37:52 -06:00
Ian Norden
7843312815
major refactoring of super_node to make it easier to support other chains
2020-01-24 15:37:52 -06:00
Ian Norden
0785507a7d
support for total difficulty (needed to support some eth endpoints)
2020-01-24 15:37:52 -06:00
Ian Norden
7ef132c400
new db schema
2019-12-03 14:55:53 -06:00
Rob Mulholand
56ce8bdb41
(VDB-950) Write raw diffs before transforming
...
- Raw field we can reference by FK for related data
- Enables replay for unwatched or mistransformed diffs
2019-12-03 14:51:17 -06:00
Rob Mulholand
6f837f5e88
Add indexes to columns used in plugin joins
...
- Will probably want to update these depending on what's commonly used
in join/where statements.
2019-12-02 23:54:52 -06:00
Ian Norden
4036d9d6a0
review fixes
2019-12-02 13:49:27 -06:00
Ian Norden
c16ac026db
logWithCommand; rebase fixes; config for testing super node subscription
2019-12-02 13:24:58 -06:00
Ian Norden
e912fa6c87
new db schema
2019-12-02 13:24:58 -06:00
Ian Norden
4c81ca4d54
rename blocks table to eth_blocks so that we don't clash with the ipfs blocks table; dockerfile and startup_script for the seed node
2019-12-02 13:24:51 -06:00
Gabe Laughlin
2dc8ace69b
(VDB-925) Add hashed address to address table
2019-10-30 11:56:25 -05:00
yaoandrew
deb64b8701
Rebase with staging
2019-10-28 23:30:52 -07:00
Rob Mulholand
e252229b8a
Add constraint to prevent duplicate headers
...
- Disallow inserts of headers with the same number, hash, and node
fingerprint, since it will enable duplicate log fetching for the
same header
2019-10-28 14:57:13 -05:00
Rob Mulholand
3f9b034c4c
Rename checked_logs => watched_logs
...
- We're logging that a given log has been included in any fetch calls
for checked headers, rather than that we have already checked for
that log
2019-09-10 21:22:14 -05:00
Rob Mulholand
b9f3b9f946
Reference header sync logs address via foreign key
2019-08-28 10:41:34 -05:00
Rob Mulholand
5ac76eee74
Make check_count a column on public.headers
...
- Don't need to maintain it on public.checked_headers if we're not
adding additional columns to that table
2019-08-28 09:50:17 -05:00
Rob Mulholand
666ea1c325
Update checked headers for new transformers
...
- If a header was marked as checked before a transformer was added to
the watcher, mark all headers since the new transformer's starting
block number as unchecked.
2019-08-28 09:25:14 -05:00
Rob Mulholand
d496dad33c
Decouple log extraction from transformer delegation
...
- limit missing headers results set to 100 so that extraction doesn't
excessively block delegation
- wrap checked headers functions in repository struct
- move storage repository to factory, to correspond with event
repository path
- remove unused files
- reformat sql
- remove line breaks in imports
2019-08-28 09:25:13 -05:00
Rob Mulholand
cb819fa9a6
Write event logs to database before transforming
...
- enables decoupling event extraction/persistence from transformation
- modifies event transformer, converter, and log chunker to accept
payload that includes internal log database ID with log data
- remove alias for transformer pkg as shared_t
- remove unused mock watcher repository
2019-08-28 09:13:44 -05:00
Rob Mulholand
3693ed905f
Rename logs to full sync logs
...
- Enable creating new table for logs used in event watching based on
header sync
2019-08-28 09:11:06 -05:00
Elizabeth Engelman
4e40e892d2
Updating header_sync_receipts to have FK reference to addresses
2019-08-23 10:11:37 -05:00
Elizabeth Engelman
bcd6d14fcd
Updating full_sync_receipts to have FK reference to addresses
2019-08-23 10:11:37 -05:00
Elizabeth Engelman
750754caa7
Add an addresses table
2019-08-23 10:11:37 -05:00
Rob Mulholand
e11f2c8c59
Don't duplicate queued storage diffs
...
- currently, if we don't recognize the same diff several times (e.g.
if you restart the storage diff watcher pointed at the same file),
we'll add the same row to the queue on each run.
- these changes assure we only queue an unrecognized diff once.
2019-06-14 11:26:15 -05:00
Gabe Laughlin
b4cdf76905
(VDB-479) Upgrade Posgres to 11
2019-05-14 16:49:05 -05:00
Gabe Laughlin
a344432156
(VDB-560) Rename lightSync to headerSync
2019-05-01 12:12:55 -05:00
Rob Mulholand
fb753a1468
Update schema to remove uncles
2019-04-08 15:16:43 -05:00
Ian Norden
9befc76fc6
remove LIMIT 100; method to check continuity of headers returned but doesn't require
...
the set to start at a specific block number; config for
account_transformer; review fixes; update schema
2019-04-05 17:21:59 -05:00
Rob Mulholand
fdd870563e
Update db schema for latest changes
2019-04-05 14:51:51 -05:00