Skip to content

Commit

Permalink
make it a package
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardWeiYang committed Oct 22, 2017
1 parent 04318d7 commit eca3c60
Show file tree
Hide file tree
Showing 27 changed files with 26 additions and 32 deletions.
2 changes: 1 addition & 1 deletion base58.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion base58_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion block.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion blockchain.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion blockchain_iterator.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"log"
Expand Down
2 changes: 1 addition & 1 deletion cli.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"flag"
Expand Down
2 changes: 1 addition & 1 deletion cli_createblockchain.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cli_createwallet.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import "fmt"

Expand Down
2 changes: 1 addition & 1 deletion cli_explore.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"crypto/elliptic"
Expand Down
2 changes: 1 addition & 1 deletion cli_getbalance.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cli_listaddress.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cli_printchain.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cli_reindexutxo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import "fmt"

Expand Down
2 changes: 1 addition & 1 deletion cli_send.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cli_startnode.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"fmt"
Expand Down
6 changes: 0 additions & 6 deletions main.go

This file was deleted.

2 changes: 1 addition & 1 deletion merkle_tree.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"crypto/sha256"
Expand Down
2 changes: 1 addition & 1 deletion merkle_tree_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"encoding/hex"
Expand Down
2 changes: 1 addition & 1 deletion proofofwork.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion transaction.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion transaction_input.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import "bytes"

Expand Down
2 changes: 1 addition & 1 deletion transaction_output.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion utxo_set.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"encoding/hex"
Expand Down
2 changes: 1 addition & 1 deletion wallet.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion wallets.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package blockchain_go

import (
"bytes"
Expand Down

0 comments on commit eca3c60

Please sign in to comment.