Base wallet implementation (#35)

* Initial draft of the neo-go wallet

* Cleanup + more test for util package

* integrated wallet into neo-cli partially

* base wallet implementation + smartcontract code.
This commit is contained in:
Anthony De Meulemeester 2018-03-02 16:24:09 +01:00 committed by GitHub
parent 942650dd8b
commit f3f6662fc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 1754 additions and 87 deletions

View file

@ -9,7 +9,7 @@ import (
)
func TestNewBlockchain(t *testing.T) {
startHash, _ := util.Uint256DecodeFromString("996e37358dc369912041f966f8c5d8d3a8255ba5dcbd3447f8a82b55db869099")
startHash, _ := util.Uint256DecodeString("996e37358dc369912041f966f8c5d8d3a8255ba5dcbd3447f8a82b55db869099")
bc := NewBlockchain(nil, nil, startHash)
want := uint32(0)
@ -28,7 +28,7 @@ func TestNewBlockchain(t *testing.T) {
}
func TestAddHeaders(t *testing.T) {
startHash, _ := util.Uint256DecodeFromString("996e37358dc369912041f966f8c5d8d3a8255ba5dcbd3447f8a82b55db869099")
startHash, _ := util.Uint256DecodeString("996e37358dc369912041f966f8c5d8d3a8255ba5dcbd3447f8a82b55db869099")
bc := NewBlockchain(NewMemoryStore(), log.New(os.Stdout, "", 0), startHash)
h1 := &Header{BlockBase: BlockBase{Version: 0, Index: 1, Script: &Witness{}}}