This commit is contained in:
Dmitriy Ryajov 2021-08-27 15:37:24 -06:00
parent 7a5bc802a1
commit bd25fb9866
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
2 changed files with 13 additions and 1 deletions

12
dagger/blockstream.nim Normal file
View File

@ -0,0 +1,12 @@
## Nim-Dagger
## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
## * MIT license ([LICENSE-MIT](LICENSE-MIT))
## at your option.
## This file may not be copied, modified, or distributed except according to
## those terms.
import ./blockstream/[blockstream, chunkedblockstream]
export blockstream, chunkedblockstream

View File

@ -45,7 +45,7 @@ func new*(
cid: Cid.init(version, codec, hash).get(), cid: Cid.init(version, codec, hash).get(),
data: @data) data: @data)
proc new*( func new*(
T: type Block, T: type Block,
cid: Cid, cid: Cid,
data: openArray[byte] = [], data: openArray[byte] = [],