The Greenfield Execution Provider will execute the execution tasks invoked in greenfield and submit the results to the greenfield.
There are three components in the Greenfield Execution Provider:
-
Observer
The observer will observe the execution tasks in the greenfield and record the execution tasks in the database.
-
Executor
The executor will execute the execution tasks in the database and upload the result files to the greenfield.
-
Sender
The sender will send the executed task receipts to the greenfield.
Execute the following command to setup the local environment:
make local_up
This command will start a local greenfield chain and a local storage provider.
Execute the following command to build the binaries:
make all
This command will build the binaries in the build
directory, including the observer, executor and sender.
- Go to folder
e2e
, run commandgo test -v .
it will print the private key under the line
=== RUN TestStorageTestSuite"
copy the private key words, update the private_key
in build/config_executor.json
and sender_executor.json
- Go to
build
folder generated bymake all
, run following commands in separate terminals
./observer
./executor
./sender --config-path ./config_sender.json
- Go to folder
e2e
and rungo test -v .
to trigger the invocation transaction and observe the log printed fromexecutor
andsender