Persisting more states (#71)

* added persistence of assets and spentcoins.

* contract params

* bumped version
This commit is contained in:
Anthony De Meulemeester 2018-04-16 22:15:30 +02:00 committed by GitHub
parent 7883f305e7
commit 2cdfee211a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 414 additions and 23 deletions

View file

@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
)
func TestDecodeEncode(t *testing.T) {
func TestDecodeEncodeUnspentCoinState(t *testing.T) {
unspent := &UnspentCoinState{
states: []CoinState{
CoinStateConfirmed,
@ -26,7 +26,7 @@ func TestDecodeEncode(t *testing.T) {
assert.Nil(t, unspentDecode.DecodeBinary(buf))
}
func TestCommit(t *testing.T) {
func TestCommitUnspentCoins(t *testing.T) {
var (
store = storage.NewMemoryStore()
batch = store.Batch()