[Go] Allow minimal preset (#283)
This commit is contained in:
parent
ae2db332a5
commit
928fd9d9b7
|
@ -40,6 +40,14 @@ Run the benchmarks with this command:
|
|||
go test -bench=Benchmark
|
||||
```
|
||||
|
||||
## Minimal
|
||||
|
||||
By default, `FIELD_ELEMENTS_PER_BLOB` will be 4096 (mainnet), but you can
|
||||
manually set it to 4 (minimal), like so:
|
||||
```
|
||||
CGO_CFLAGS="-DFIELD_ELEMENTS_PER_BLOB=4" go build
|
||||
```
|
||||
|
||||
## Note
|
||||
|
||||
The `go.mod` and `go.sum` files are in the project's root directory because the
|
||||
|
|
|
@ -2,7 +2,9 @@ package cgokzg4844
|
|||
|
||||
// #cgo CFLAGS: -I${SRCDIR}/../../src
|
||||
// #cgo CFLAGS: -I${SRCDIR}/blst_headers
|
||||
// #cgo CFLAGS: -DFIELD_ELEMENTS_PER_BLOB=4096
|
||||
// #ifndef FIELD_ELEMENTS_PER_BLOB
|
||||
// #define FIELD_ELEMENTS_PER_BLOB 4096
|
||||
// #endif
|
||||
// #include "c_kzg_4844.c"
|
||||
import "C"
|
||||
|
||||
|
|
Loading…
Reference in New Issue