mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-08 11:56:46 +01:00
Implement Pipeline.prepareForgeBatchArgs()
- Implement Pipeline.prepareForgeBatchArgs() - Add a minimal stress test for the coordinator (that also runs the synchronizer) - Update txprocessor.ProcessTxs() to return valid results for batches without transactions - Add the boilerplate for the corresponding test, leaving as TODO the zkInput values - Update prover client to use the same point format as proof server (projective) - Update interface of TxSelector.GetCoordIdxs to also return the authorizations to create accounts that go with the l1CoordinatorTxs.
This commit is contained in:
@@ -12,7 +12,8 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
const apiURL = "http://localhost:3000/api"
|
||||
var apiURL = "http://localhost:3000/api"
|
||||
|
||||
const pollInterval = 1 * time.Second
|
||||
|
||||
var proofServerClient *ProofServerClient
|
||||
@@ -20,6 +21,10 @@ var proofServerClient *ProofServerClient
|
||||
func TestMain(m *testing.M) {
|
||||
exitVal := 0
|
||||
if os.Getenv("INTEGRATION") != "" {
|
||||
_apiURL := os.Getenv("PROOF_SERVER_URL")
|
||||
if _apiURL != "" {
|
||||
apiURL = _apiURL
|
||||
}
|
||||
proofServerClient = NewProofServerClient(apiURL, pollInterval)
|
||||
err := proofServerClient.WaitReady(context.Background())
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user