Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-blocksutil
Commits
9321aca9
Commit
9321aca9
authored
Apr 03, 2017
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement bitswap sessions
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
fffe3387
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
block_generator.go
block_generator.go
+2
-2
No files found.
block_generator.go
View file @
9321aca9
...
...
@@ -25,8 +25,8 @@ func (bg *BlockGenerator) Next() *blocks.BasicBlock {
}
// Blocks generates as many BasicBlocks as specified by n.
func
(
bg
*
BlockGenerator
)
Blocks
(
n
int
)
[]
*
blocks
.
Basic
Block
{
blocks
:=
make
([]
*
blocks
.
Basic
Block
,
0
)
func
(
bg
*
BlockGenerator
)
Blocks
(
n
int
)
[]
blocks
.
Block
{
blocks
:=
make
([]
blocks
.
Block
,
0
,
n
)
for
i
:=
0
;
i
<
n
;
i
++
{
b
:=
bg
.
Next
()
blocks
=
append
(
blocks
,
b
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment