mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 19:56:44 +00:00
Merge branch 'bzz' of github.com:ethersphere/go-ethereum into bzz
This commit is contained in:
commit
aab16c49bb
1 changed files with 1 additions and 3 deletions
|
|
@ -24,9 +24,7 @@ func main() {
|
||||||
|
|
||||||
stat, _ := f.Stat()
|
stat, _ := f.Stat()
|
||||||
sr := io.NewSectionReader(f, 0, stat.Size())
|
sr := io.NewSectionReader(f, 0, stat.Size())
|
||||||
chunker := &bzz.TreeChunker{
|
chunker := &bzz.TreeChunker{}
|
||||||
Branches: 128,
|
|
||||||
}
|
|
||||||
chunker.Init()
|
chunker.Init()
|
||||||
hash := make([]byte, chunker.HashSize())
|
hash := make([]byte, chunker.HashSize())
|
||||||
errC := chunker.Split(hash, sr, nil)
|
errC := chunker.Split(hash, sr, nil)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue