diff --git a/base58.go b/base58.go index 60b01e8e..6b7089f3 100644 --- a/base58.go +++ b/base58.go @@ -1,4 +1,4 @@ -package main +package bc import ( "bytes" diff --git a/base58_test.go b/base58_test.go index 5221340e..8d80cd33 100644 --- a/base58_test.go +++ b/base58_test.go @@ -1,4 +1,4 @@ -package main +package bc import ( "testing" diff --git a/block.go b/block.go index e403e549..2c70cb58 100644 --- a/block.go +++ b/block.go @@ -1,4 +1,4 @@ -package main +package bc import ( "bytes" diff --git a/blockchain.go b/blockchain.go index 535a1309..28b01c02 100644 --- a/blockchain.go +++ b/blockchain.go @@ -1,4 +1,4 @@ -package main +package bc import ( "bytes" diff --git a/blockchain_iterator.go b/blockchain_iterator.go index 305311d9..5b3699e1 100644 --- a/blockchain_iterator.go +++ b/blockchain_iterator.go @@ -1,4 +1,4 @@ -package main +package bc import ( "log" diff --git a/cli.go b/cli.go index e0f17a70..90d7165d 100644 --- a/cli.go +++ b/cli.go @@ -1,4 +1,4 @@ -package main +package bc import ( "flag" diff --git a/cli_createblockchain.go b/cli_createblockchain.go index 7e69405c..5b86845d 100644 --- a/cli_createblockchain.go +++ b/cli_createblockchain.go @@ -1,4 +1,4 @@ -package main +package bc import ( "fmt" diff --git a/cli_createwallet.go b/cli_createwallet.go index 0e05f202..c605d656 100644 --- a/cli_createwallet.go +++ b/cli_createwallet.go @@ -1,4 +1,4 @@ -package main +package bc import "fmt" diff --git a/cli_explore.go b/cli_explore.go index 28494af5..d68a0e91 100644 --- a/cli_explore.go +++ b/cli_explore.go @@ -1,4 +1,4 @@ -package main +package bc import ( "crypto/elliptic" diff --git a/cli_getbalance.go b/cli_getbalance.go index a86e3dc1..6c8b7fa9 100644 --- a/cli_getbalance.go +++ b/cli_getbalance.go @@ -1,4 +1,4 @@ -package main +package bc import ( "fmt" diff --git a/cli_listaddress.go b/cli_listaddress.go index 0d30563d..66bdf1e4 100644 --- a/cli_listaddress.go +++ b/cli_listaddress.go @@ -1,4 +1,4 @@ -package main +package bc import ( "fmt" diff --git a/cli_printchain.go b/cli_printchain.go index 49c4deb1..bcb66ba2 100644 --- a/cli_printchain.go +++ b/cli_printchain.go @@ -1,4 +1,4 @@ -package main +package bc import ( "fmt" diff --git a/cli_reindexutxo.go b/cli_reindexutxo.go index 87db3245..74b8dc52 100644 --- a/cli_reindexutxo.go +++ b/cli_reindexutxo.go @@ -1,4 +1,4 @@ -package main +package bc import "fmt" diff --git a/cli_send.go b/cli_send.go index 67b0091e..1f22cbb9 100644 --- a/cli_send.go +++ b/cli_send.go @@ -1,4 +1,4 @@ -package main +package bc import ( "fmt" diff --git a/cli_startnode.go b/cli_startnode.go index d390512e..9d6b5814 100644 --- a/cli_startnode.go +++ b/cli_startnode.go @@ -1,4 +1,4 @@ -package main +package bc import ( "fmt" diff --git a/main.go b/main.go deleted file mode 100644 index a48ad8e5..00000000 --- a/main.go +++ /dev/null @@ -1,6 +0,0 @@ -package main - -func main() { - cli := CLI{} - cli.Run() -} diff --git a/merkle_tree.go b/merkle_tree.go index 0b7deb6c..985dde45 100644 --- a/merkle_tree.go +++ b/merkle_tree.go @@ -1,4 +1,4 @@ -package main +package bc import ( "crypto/sha256" diff --git a/merkle_tree_test.go b/merkle_tree_test.go index d104ceee..5275a5e1 100644 --- a/merkle_tree_test.go +++ b/merkle_tree_test.go @@ -1,4 +1,4 @@ -package main +package bc import ( "encoding/hex" diff --git a/proofofwork.go b/proofofwork.go index 967a4bc1..2160cbe2 100644 --- a/proofofwork.go +++ b/proofofwork.go @@ -1,4 +1,4 @@ -package main +package bc import ( "bytes" diff --git a/server.go b/server.go index 0058cd0c..0895ad98 100644 --- a/server.go +++ b/server.go @@ -1,4 +1,4 @@ -package main +package bc import ( "bytes" diff --git a/transaction.go b/transaction.go index f3fc0973..84a31a1b 100644 --- a/transaction.go +++ b/transaction.go @@ -1,4 +1,4 @@ -package main +package bc import ( "bytes" diff --git a/transaction_input.go b/transaction_input.go index 23beeba5..e928ef6c 100644 --- a/transaction_input.go +++ b/transaction_input.go @@ -1,4 +1,4 @@ -package main +package bc import "bytes" diff --git a/transaction_output.go b/transaction_output.go index deb49cdb..d3163e81 100644 --- a/transaction_output.go +++ b/transaction_output.go @@ -1,4 +1,4 @@ -package main +package bc import ( "bytes" diff --git a/utils.go b/utils.go index aecf9192..bd1649f1 100644 --- a/utils.go +++ b/utils.go @@ -1,4 +1,4 @@ -package main +package bc import ( "bytes" diff --git a/utxo_set.go b/utxo_set.go index 180ce04b..902b530c 100644 --- a/utxo_set.go +++ b/utxo_set.go @@ -1,4 +1,4 @@ -package main +package bc import ( "encoding/hex" diff --git a/wallet.go b/wallet.go index 506b5444..e1bd6a34 100644 --- a/wallet.go +++ b/wallet.go @@ -1,4 +1,4 @@ -package main +package bc import ( "bytes" diff --git a/wallets.go b/wallets.go index a7d354f4..763d3547 100644 --- a/wallets.go +++ b/wallets.go @@ -1,4 +1,4 @@ -package main +package bc import ( "bytes"