* the transaction output amout prohibit set zero
* add network access control api
* format import code style
* refactor
* code refactor
* bug fix
* the struct node_info add json field
// PeerInfo indicate peer information
type PeerInfo struct {
- Id string
- RemoteAddr string
- Height uint64
- delay uint32
+ Id string `json:"id"`
+ RemoteAddr string `json:"remote_addr"`
+ Height uint64 `json:"height"`
+ Delay uint32 `json:"delay"`
}
func newPeer(height uint64, hash *bc.Hash, Peer *p2p.Peer) *peer {
Id: p.id,
RemoteAddr: p.swPeer.RemoteAddr,
Height: p.height,
- delay: 0, // TODO
+ Delay: 0, // TODO
}
}