Persisting more states (#71)
* added persistence of assets and spentcoins. * contract params * bumped version
This commit is contained in:
parent
7883f305e7
commit
2cdfee211a
11 changed files with 414 additions and 23 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue