forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 0
Porting coreth 0.13.7 to OpenBSD adJ 7.5
Vladimir Támara Patiño edited this page Jul 29, 2024
·
9 revisions
% git checkout 7b875dc21772c1bb9e9de5bc2b31e88c53055e26 # version 0.13.7
% git tag -a v0.13.7 -m "Version 0.13.7" # add tag to our fork
% git push origin v0.13.7
% git checkout -b v0.13.7adJ
% git cherry-pick 22e58cf9f4853a0bd758778f6fd5992b75133835 # updates blst to 0.3.12 see https://github.com/ava-labs/coreth/issues/614
% go mod edit --replace "github.com/ava-labs/[email protected]"="github.com/vtamara/[email protected]"
% ./scripts/build.sh
After I updated avalanchego 1.11.10adJ to use my fork of coreth at v0.13.7adJ
To test I removed -race
from scripts/build_test.sh
and run it.
Since coreth implements contracts chain i.e c-Chain in Avalanchego, we think it should answer to requests to that API.
A test node that validated in testnet (not during this test) to a request exemplified at https://docs.avax.network/reference/avalanchego/c-chain/api responds with:
curl -X POST --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"eth_getChainConfig",
"params" :[]
}' -H 'content-type:application/json;' 90.72.132.112:9650/ext/bc/C/rpc
{"jsonrpc":"2.0","id":1,"result":{"chainId":43113,"homesteadBlock":0,"daoForkBlock":0,"daoForkSupport":true,"eip150Block":0,"eip155Block":0,"eip158Block":0,"byzantiumBlock":0,"constantinopleBlock":0,"petersburgBlock":0,"istanbulBlock":0,"muirGlacierBlock":0,"apricotPhase1BlockTimestamp":1616767200,"apricotPhase2BlockTimestamp":1620223200,"apricotPhase3BlockTimestamp":1629140400,"apricotPhase4BlockTimestamp":1631826000,"apricotPhase5BlockTimestamp":1637766000,"apricotPhasePre6BlockTimestamp":1662494400,"apricotPhase6BlockTimestamp":1662494400,"apricotPhasePost6BlockTimestamp":1662530400,"banffBlockTimestamp":1664805600,"cortinaBlockTimestamp":1680793200,"durangoBlockTimestamp":1707840000,"eUpgradeTime":253431244800}}