Skip to content

Commit

Permalink
Add Glide package manager tool
Browse files Browse the repository at this point in the history
The Glide package manager could automatic download the dependency
package what we need in this project, the third party package will
be remove from the project now to keep the code clean and tidy.

All the later compile need run "glide up" when download the code at
the first time

Signed-off-by: Yanbo Li <[email protected]>
  • Loading branch information
dreamfly281 committed Mar 23, 2017
1 parent c8bb3c5 commit 4c55459
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ GoOnchain.iml
*.orig
*.rej
Log
vendor/*
Chain/*
/core/*/*_test.go
/core/*/*/*_test.go
/config/*
/config/*
4 changes: 1 addition & 3 deletions common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import (
"fmt"
_ "io"
"math/rand"

"golang.org/x/crypto/ripemd160"
//"GoOnchain/common/log"
"github.com/golang/crypto/ripemd160"
"encoding/hex"
"errors"
"io"
Expand Down
4 changes: 2 additions & 2 deletions common/uint160.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/binary"
"crypto/sha256"
"math/big"
"golang.org/x/crypto/base58"
"github.com/tv42/base58"
."GoOnchain/errors"
"errors"
)
Expand Down Expand Up @@ -90,4 +90,4 @@ func Uint160ParseFromBytes(f []byte) (Uint160,error){
hash[i] = f[i]
}
return Uint160(hash),nil
}
}
1 change: 0 additions & 1 deletion core/transaction/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"GoOnchain/core/contract"
"GoOnchain/core/contract/program"
sig "GoOnchain/core/signature"
msg "GoOnchain/node/message"
"GoOnchain/core/transaction/payload"
. "GoOnchain/errors"
"crypto/sha256"
Expand Down
27 changes: 27 additions & 0 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package: GoOnchain
import:
- package: github.com/golang/crypto
subpackages:
- ripemd160
- package: github.com/syndtr/goleveldb
subpackages:
- leveldb
- leveldb/errors
- leveldb/iterator
- leveldb/opt
- package: github.com/tv42/base58
2 changes: 0 additions & 2 deletions net/message/blockHdr.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ type blkHeader struct {
func NewHeadersReq(n Noder) ([]byte, error) {
var h headersReq

// Fixme correct with the exactly request length
h.p.len = 1
//Fixme! Should get the remote Node height.
buf := ledger.DefaultLedger.Blockchain.CurrentBlockHash()
copy(h.p.hashStart[:], reverse(buf[:]))

Expand Down

0 comments on commit 4c55459

Please sign in to comment.