You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'config_contract_addresses' into update-TestWhisperChannels
* config_contract_addresses: (80 commits)
removed ethereum dep
removed ethereum dependency
updated linter
resolved conflicts
Add packing for dynamic array and slice types (ethereum#18051)
cmd/puppeth: chain import/export via wizard, minor polishes
whisperv6: remove duplicated code (ethereum#18015)
cmd/puppeth: implement chainspec converters
cmd/puppeth: enforce lowercase network names
Changed http:// to https:// on JSON-RPC link (ethereum#18224)
signer/core: Fixes typo of method name in comment. (ethereum#18222)
swarm/pss: Add same api interface for all Send* methods (ethereum#18218)
p2p: use errors.New instead of fmt.Errorf (ethereum#18193)
vendor: update github.com/karalabe/hid (ethereum#18213)
cmd/swarm: add flag for application name (swarm or swarm-private) (ethereum#18189)
accounts/keystore: delete the redundant keystore in filename (ethereum#17930)
mobile: added constructor for BigInts (ethereum#17828)
remove a no-op line in the code (ethereum#17760)
vendor: update leveldb
tests, core: update tests and make STATICCALL cause touch-delete (ethereum#18187)
...
Building geth requires both a Go (version 1.7 or later) and a C compiler.
266
+
Building geth requires both a Go (version 1.9 or later) and a C compiler.
266
267
You can install them using your favourite package manager.
267
268
Once the dependencies are installed, run
268
269
@@ -412,7 +413,7 @@ HTTP based JSON-RPC API options:
412
413
-`--ipcpath` Filename for IPC socket/pipe within the datadir (explicit paths escape it)
413
414
414
415
You'll need to use your own programming environments' capabilities (libraries, tools, etc) to connect
415
-
via HTTP, WS or IPC to a Geth node configured with the above flags and you'll need to speak [JSON-RPC](http://www.jsonrpc.org/specification)
416
+
via HTTP, WS or IPC to a Geth node configured with the above flags and you'll need to speak [JSON-RPC](https://www.jsonrpc.org/specification)
416
417
on all transports. You can reuse the same connection for multiple requests!
417
418
418
419
**Note: Please understand the security implications of opening up an HTTP/WS based transport before
@@ -524,6 +525,77 @@ Which will start mining blocks and transactions on a single CPU thread, creditin
524
525
the account specified by `--etherbase`. You can further tune the mining by changing the default gas
525
526
limit blocks converge to (`--targetgaslimit`) and the price transactions are accepted at (`--gasprice`).
526
527
528
+
## SHYFT NOTES
529
+
530
+
#### CLI
531
+
532
+
Run `./shyft-geth.sh` with one of the following flags:
533
+
534
+
-`--setup` - Setups postgres and the shyft chain db.
535
+
-`--start` - Starts geth.
536
+
-`--reset` - Drops postgress and chain db, and reinstantiates both.
537
+
-`--js [web3 filename]` - Executes web3 calls with a passed file name. If the file name is `sendTransactions.js`, `./shyft-geth.sh --js sendTransactions`.
538
+
539
+
#### Docker Images
540
+
541
+
Docker Images are available for ShyftGeth and the Postgresql Database which can be used for development and testing. To launch these containers you will need to have docker-compose installed on your computer. Installation instructions for docker-compose are available [here](https://docs.docker.com/install/).
542
+
543
+
To launch ShyftGeth, PG, the ShyftBlock Explorer Api and UI - issue the following command from the root of the project directory:
544
+
545
+
`docker-compose up`
546
+
547
+
If you would like to reinitialize/rebuild the docker images you can issue the following command:
548
+
549
+
`docker-compose up --build`
550
+
551
+
To rebuild any one of the services - issue the following commands:
552
+
553
+
```
554
+
docker-compose up -d --no-deps --build <docker compose file service name>
555
+
556
+
# ie. for shyftBlockExplorerApi:
557
+
# docker-compose up -d --no-deps --build shyft_block_api
558
+
```
559
+
__The Postgresql Database Container will persist the database data to a folder in the root of the project directory - pg-data" __. So if you do want to reinitialize the database you should delete this docker container prior to launching the docker containers. To delete this docker volume and have it recreated you should input the following command:
560
+
561
+
```docker volume rm go-empyrean_pg-data```
562
+
563
+
From your local machine you can view the database by connecting to the database in the container at 127.0.0.1:8001. To access the shyftBlockExplorer open a browser and visit http://localhost:3000
564
+
565
+
__Blockchain data is persisted to ./ethash/.ethash__ and ./shyftData. If you would like to reset the test blockchain you will need to delete the ./ethash and ./shyftData directories.
566
+
567
+
The docker container for the ShyftBlockExplorerApi utilizes govendor to minimize its image size. __If you would like the docker image for this container to reflect any uncommitted changes which may have occurred in the go-empyrean repository, ie. changes with respect to go-empyrean core (ie. cryptographic functions and database). Prior to launching the docker containers you should rebuild the vendor directory for the shyftBlockExplorerApi - by executing the following steps:__
568
+
569
+
```
570
+
# remove existing shyftBlockExplorerApi vendor.json and vendored components:
571
+
572
+
rm -rf shyftBlockExplorerApi/vendor
573
+
574
+
# reinitialize vendor.json
575
+
576
+
cd shyftBlockExplorerApi && govendor init
577
+
578
+
# rebuild vendor.json using latest uncommitted changes
579
+
580
+
govendor add -tree -uncommitted +external
581
+
582
+
# due to a bug in govendor and it not being able to pull in some dependencies that are c-header files
583
+
# you should execute the following commands - see these issues - which whilst closed
584
+
# appears to have not been fixed: https://github.com/kardianos/govendor/issues/124 && https://github.com/kardianos/govendor/issues/61
0 commit comments