Skip to content

Commit

Permalink
change version
Browse files Browse the repository at this point in the history
  • Loading branch information
gordon-sero committed May 6, 2019
1 parent 15a4fac commit 5e226ec
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 3 deletions.
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const (
VersionMajor = 0 // Major version component of the current release
VersionMinor = 7 // Minor version component of the current release
VersionPatch = 0 // Patch version component of the current release
VersionMeta = "beta.r7-hotfix.2" // Version metadata to append to the version string
VersionMeta = "beta.r7-hotfix.3" // Version metadata to append to the version string
)

// Version holds the textual version string.
Expand Down
37 changes: 37 additions & 0 deletions zero/light/light_issi/type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package light_issi

import (
"github.com/sero-cash/go-czero-import/keys"
"github.com/sero-cash/go-sero/common/hexutil"
"github.com/sero-cash/go-sero/zero/light/light_types"
)

type Out struct {
Root keys.Uint256
PKr keys.PKr
}
type Block struct {
Num hexutil.Uint64
Outs []Out
Nils []keys.Uint256
}

type GIn struct {
SKr keys.PKr
Root keys.Uint256
}

type GenTxParam struct {
Gas uint64
GasPrice uint64
From light_types.Kr
Ins []GIn
Outs []light_types.GOut
}

type ISSI interface {
GetBlocksInfo(start uint64, count uint64) ([]Block, error)
Detail(root []keys.Uint256, skr *keys.PKr) ([]light_types.DOut, error)
GenTx(param GenTxParam) (keys.Uint256, error)
CommitTx(txhash keys.Uint256) error
}
4 changes: 2 additions & 2 deletions zero/light/sri.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ func (self *SRI) GetAnchor(roots []keys.Uint256) (wits []light_types.Witness, e
for _, root := range roots {
wit := light_types.Witness{}
out := localdb.GetRoot(light_ref.Ref_inst.Bc.GetDB(), &root)
if out==nil {
e=errors.New("GetAnchor use root but out is nil !!!")
if out == nil {
e = errors.New("GetAnchor use root but out is nil !!!")
return
}
pos, paths, anchor := state.State.MTree.GetPaths(*out.OS.RootCM)
Expand Down
32 changes: 32 additions & 0 deletions zero/light/ssi.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package light

import (
"github.com/sero-cash/go-czero-import/keys"
"github.com/sero-cash/go-sero/zero/light/light_issi"
"github.com/sero-cash/go-sero/zero/light/light_types"
)

type SSI struct {
}

var SSI_Inst = SSI{}

func (self *SSI) GetBlocksInfo(start uint64, count uint64) (blocks []light_issi.Block, e error) {

return
}

func (self *SSI) Detail(root []keys.Uint256, skr *keys.PKr) (douts []light_types.DOut, e error) {

return
}

func (self *SSI) GenTx(param light_issi.GenTxParam) (hash keys.Uint256, e error) {

return
}

func (self *SSI) CommitTx(txhash keys.Uint256) (e error) {

return
}

0 comments on commit 5e226ec

Please sign in to comment.