pkg: hide it by moving to _pkg.dev
The idea here is to preserve the history of `dev` branch development and its code when merging with the `master`. Later this code could be moved into the masters code where appropriate.
This commit is contained in:
parent
bb2568cc53
commit
ddd1d92ff1
183 changed files with 0 additions and 0 deletions
32
_pkg.dev/wire/payload/transaction/miner.go
Normal file
32
_pkg.dev/wire/payload/transaction/miner.go
Normal file
|
@ -0,0 +1,32 @@
|
|||
package transaction
|
||||
|
||||
import (
|
||||
"github.com/CityOfZion/neo-go/pkg/wire/payload/transaction/types"
|
||||
"github.com/CityOfZion/neo-go/pkg/wire/payload/transaction/version"
|
||||
"github.com/CityOfZion/neo-go/pkg/wire/util"
|
||||
)
|
||||
|
||||
//Miner represents a miner transaction on the neo network
|
||||
type Miner struct {
|
||||
*Base
|
||||
Nonce uint32
|
||||
}
|
||||
|
||||
//NewMiner returns a miner transaction
|
||||
func NewMiner(ver version.TX) *Miner {
|
||||
basicTrans := createBaseTransaction(types.Miner, ver)
|
||||
|
||||
Miner := &Miner{}
|
||||
Miner.Base = basicTrans
|
||||
Miner.encodeExclusive = Miner.encodeExcl
|
||||
Miner.decodeExclusive = Miner.decodeExcl
|
||||
return Miner
|
||||
}
|
||||
|
||||
func (c *Miner) encodeExcl(bw *util.BinWriter) {
|
||||
bw.Write(c.Nonce)
|
||||
}
|
||||
|
||||
func (c *Miner) decodeExcl(br *util.BinReader) {
|
||||
br.Read(&c.Nonce)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue