diff --git a/dagger/blockstream.nim b/dagger/blockstream.nim new file mode 100644 index 00000000..cb7601ce --- /dev/null +++ b/dagger/blockstream.nim @@ -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 diff --git a/dagger/blocktype.nim b/dagger/blocktype.nim index e48bce61..8f201fdd 100644 --- a/dagger/blocktype.nim +++ b/dagger/blocktype.nim @@ -45,7 +45,7 @@ func new*( cid: Cid.init(version, codec, hash).get(), data: @data) -proc new*( +func new*( T: type Block, cid: Cid, data: openArray[byte] = [],