mirror of https://github.com/status-im/nim-eth.git
fix openssl problem in ci (#533)
* tighter nimcrypto imports * install openssl on macos for Nim devel * add getTotalDifficulty base method to AbtractChainDB Co-authored-by: Jacek Sieka <jacek@status.im>
This commit is contained in:
parent
5e4123fda8
commit
2186d67163
|
@ -69,6 +69,13 @@ jobs:
|
|||
chmod 755 external/bin/gcc external/bin/g++
|
||||
echo '${{ github.workspace }}/external/bin' >> $GITHUB_PATH
|
||||
|
||||
- name: 'Install dependencies (macOS)'
|
||||
if: runner.os == 'macOS' && matrix.branch == 'devel'
|
||||
run: |
|
||||
brew install openssl@1.1
|
||||
ln -s $(brew --prefix)/opt/openssl/lib/libcrypto.1.1.dylib /usr/local/lib/
|
||||
ln -s $(brew --prefix)/opt/openssl/lib/libssl.1.1.dylib /usr/local/lib/
|
||||
|
||||
- name: Restore rocksdb from cache (Macos)
|
||||
if: runner.os != 'Windows'
|
||||
id: rocksdb-cache
|
||||
|
|
|
@ -55,7 +55,7 @@ method getAncestorHeader*(db: AbstractChainDB, h: BlockHeader,
|
|||
notImplemented("getAncestorHeader")
|
||||
|
||||
method getBlockBody*(db: AbstractChainDB, blockHash: KeccakHash): BlockBodyRef
|
||||
{.base, gcsafe, raises: [Defect].} =
|
||||
{.base, gcsafe, raises: [RlpError, Defect].} =
|
||||
notImplemented("getBlockBody")
|
||||
|
||||
method getReceipt*(db: AbstractChainDB, hash: KeccakHash): ReceiptRef {.base, gcsafe.} =
|
||||
|
@ -95,3 +95,6 @@ method persistBlocks*(db: AbstractChainDB, headers: openArray[BlockHeader], bodi
|
|||
method getForkId*(db: AbstractChainDB, n: BlockNumber): ForkID {.base, gcsafe.} =
|
||||
# EIP 2364/2124
|
||||
notImplemented("getForkId")
|
||||
|
||||
method getTotalDifficulty*(db: AbstractChainDB): DifficultyInt {.base, gcsafe, raises: [RlpError, Defect].} =
|
||||
notImplemented("getTotalDifficulty")
|
||||
|
|
Loading…
Reference in New Issue