Richard Patel
3a0f58b1e3
rocksdb: build with all CPUs
...
As always, Bazel caching is broken and kind of useless.
It constantly rebuilds RocksDB for no particular reason.
Each build takes over a minute. Make it faster.
Change-Id: I337addd842f2446734b1b47dc35b8e5b9d815b0f
2023-01-24 14:00:36 +00:00
Richard Patel
a4b5063ff0
radiance: use new shred API
...
Change-Id: Idd8f51b45561cfe6b9230d5a3555119efe14f867
2023-01-24 13:53:19 +00:00
Richard Patel
ec8deb7ac2
blockstore: use new shred API
...
Change-Id: I4dcdfe94e3d72342698828880656161ab12d60c8
2023-01-24 13:53:19 +00:00
Richard Patel
ea1e6cd07b
bazel: switch to rules_proto-5.3.0-21.7
...
Change-Id: Id22353b2ad383abb39ed9dca858447b3c020ea05
2023-01-24 14:51:52 +01:00
Richard Patel
d435a44217
go.mod: update deps
...
Change-Id: I3c39c2f7510f9daf616d2a8f3aa3783d6f5407a0
Reviewed-on: https://git.firedancer.io/c/radiance/+/467
2023-01-22 15:03:38 +00:00
Richard Patel
408ad6cfcc
go.mod: update deps
...
Change-Id: I10e4ec16d0f43d3f5fc1f19d1202011094c26370
Reviewed-on: https://git.firedancer.io/c/radiance/+/466
2023-01-22 15:01:13 +00:00
Richard Patel
19fc982b7f
add codereview.cfg
...
Change-Id: I55376a1dcb16b5c596eebd3bd079f3ce7263427f
Reviewed-on: https://git.firedancer.io/c/radiance/+/318
2022-12-17 04:37:06 +00:00
Richard Patel
45beccffd5
third_party/rocksdb: fix build, improve flags
...
Change-Id: I35cde0b8a74b57491dd019d17d7df60905c92180
Reviewed-on: https://git.firedancer.io/c/radiance/+/316
2022-12-17 04:32:54 +00:00
Richard Patel
c0624197da
compactindex: fix build
...
Change-Id: I750442c09470a2be9e7cd56efc8670399c8dd352
Reviewed-on: https://git.firedancer.io/c/radiance/+/315
2022-12-17 04:31:58 +00:00
Richard Patel
ca3cc0c4e5
shred: simplify API, add Merkle support
...
Change-Id: I950f86070fa119b2edaa5867e2b36e8b4ad6ff9b
Reviewed-on: https://git.firedancer.io/c/radiance/+/312
2022-12-17 04:26:59 +00:00
Richard Patel
d0df1ff5d0
Update Bazel deps
...
Change-Id: I213e94094b131dc9f498b3433922e5eed6bec5d0
Reviewed-on: https://git.firedancer.io/c/radiance/+/311
2022-12-17 04:21:51 +00:00
Richard Patel
9f207dccec
build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.1
...
Change-Id: I401408850deb32eb43167280a54d9b998bff6889
Reviewed-on: https://git.firedancer.io/c/radiance/+/310
2022-12-17 04:08:39 +00:00
Richard Patel
5ee50a8bc3
fixtures: add merkle shreds
...
Change-Id: I4925f903d1a91e64a152cee15ad0ce0155c1d9cc
Reviewed-on: https://git.firedancer.io/c/radiance/+/309
2022-12-17 03:49:30 +00:00
Richard Patel
a5fada037d
compactindex: add binary search query strategy
2022-11-13 23:03:43 +01:00
Richard Patel
dd5fa9a000
compactindex: simplify header, fix queries
2022-11-13 22:37:58 +01:00
Richard Patel
67404488a1
compactindex: document file format in README.md
2022-11-13 20:38:18 +01:00
Richard Patel
fa4ccad82d
compactindex: add README.md
2022-11-12 23:06:09 +00:00
Richard Patel
2352e044ee
compactindex: add test
2022-11-12 23:06:09 +00:00
Richard Patel
33c8826b8c
compactindex: add index builder
2022-11-12 23:06:09 +00:00
Richard Patel
d3910780d5
compactindex: add initial format and query
...
- Adds compactindex file format
- Adds memory binary search query strategy
2022-11-12 23:06:09 +00:00
Leo
2a0c056310
cmd/quictpu: tx sending WIP
2022-11-11 23:52:39 +01:00
Leo
8e40390fbf
cmd/quictpu: tx sending WIP
2022-11-11 20:37:29 +01:00
Leo
45883c17c5
cmd/quictpu: source port
2022-11-11 18:47:11 +01:00
Leo
2eae60aefc
cmd/quictpu: ALPN
2022-11-11 18:34:19 +01:00
Richard Patel
62fc08148c
bazel: install buildifier
2022-11-07 15:06:28 +00:00
Richard Patel
141be519a8
doc: add ledger-history.md
2022-10-31 11:36:26 +01:00
Richard Patel
928fefea9d
ipld: simplify entry type
2022-10-31 11:36:15 +01:00
Richard Patel
180578ea85
car: add sanity checks to tests
2022-10-31 11:35:43 +01:00
Richard Patel
d611c590c7
README.md: update and split install instructions to INSTALL.md
2022-10-30 08:32:54 +01:00
Richard Patel
2742cd8867
fix Go tests
...
- merkletree: fix broken test case
- fixtures: fix compatibility with Bazel
2022-10-30 08:19:30 +01:00
Richard Patel
4ddc64e2c0
bazel: add Go rules
2022-10-30 08:17:36 +01:00
Richard Patel
4976cfc518
bazel: build RocksDB with CMake
...
Also build grocksdb with `go_library`
2022-10-29 21:36:17 +02:00
Richard Patel
02d697c47e
third_party: add Gazelle-generated Go module rules
2022-10-29 20:19:41 +02:00
Richard Patel
bcf9eb553b
genesis: fix test
2022-10-29 20:18:46 +02:00
Richard Patel
352517d3bb
go.mod: upgrade golang.org packages
2022-10-29 20:18:46 +02:00
Richard Patel
582a566dc5
blockstore: don't depend on exp/constraints
...
Gazelle hates exp/constraints for some inexplicable reason.
> build aborted: no such package '@org_golang_x_exp//constraints': BUILD file not found in directory 'constraints' of external repository @org_golang_x_exp.
2022-10-29 20:18:46 +02:00
Richard Patel
98a105cbe0
third_party: add gflags v2.2.2, rocksdb v7.7.3 bazel repos
2022-10-29 20:18:46 +02:00
Richard Patel
c38d2684df
third_party: remove rocksdb submodule
2022-10-29 20:18:46 +02:00
Richard Patel
7be4ce9016
bazel: add rules_foreign_cc 0.9.0
2022-10-29 20:18:45 +02:00
Richard Patel
bea73d4542
gitignore: add Bazel
2022-10-29 20:18:45 +02:00
Richard Patel
861d2a4aab
go mod tidy
2022-10-29 20:18:45 +02:00
Richard Patel
c78ee582ce
bazel: add initial Gazelle integration
...
Gazelle is a build file generator for Go modules.
2022-10-29 20:18:45 +02:00
Richard Patel
c6bbf95022
bazel: add Protobuf v3.21.9
2022-10-29 15:57:26 +02:00
Richard Patel
0e68fe6661
bazel: add Bazel v5.3.2, rules_go v0.35.0 with Go v1.19.2, Gazelle v0.28.0
2022-10-29 15:56:41 +02:00
Richard Patel
ba4e9d4b0d
radiance: add car dump command
...
Adds command to dump the first signature of all txs in a CAR.
2022-10-29 15:00:50 +02:00
Richard Patel
fb579ba6fb
cargen: add unit test
...
- Adds unit test running cargen over a fake blockstore.
- Covers the CAR splitting code path.
- Ensures resulting CARs decode and contain expected CIDs.
2022-10-29 14:35:09 +02:00
Richard Patel
56a7065d79
ipldgen: fix shredding serialization
...
Fixes regression in d4c1dfe1
2022-10-29 14:30:12 +02:00
Richard Patel
a6f33dd77d
cargen: bug fixes
...
- Fix last CAR not being flushed
- Fix wrong epoch number in file name
- Print error message in edge case where block exceeds CAR length (splitting fails)
2022-10-29 14:24:57 +02:00
Richard Patel
2f5954278c
blockstore: simplify BlockWalkI.Entries()
...
Shredding is already implied by SlotMeta,
thus no need to return shreds and entries in the iterator.
2022-10-29 13:50:25 +02:00
Richard Patel
776c1e88f1
sort Go imports
2022-10-29 13:30:26 +02:00