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:
andri lim 2022-09-05 17:00:05 +07:00 committed by GitHub
parent 5e4123fda8
commit 2186d67163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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")