// info API
// "status": rpc.NewRPCFunc(Status, ""),
"net_info": rpc.NewRPCFunc(NetInfo, ""),
+ "getwork": rpc.NewRPCFunc(GetWork, ""),
+ "submitwork": rpc.NewRPCFunc(SubmitWork, ""),
// "blockchain": rpc.NewRPCFunc(BlockchainInfo, "minHeight,maxHeight"),
// "genesis": rpc.NewRPCFunc(Genesis, ""),
// "block": rpc.NewRPCFunc(Block, "height"),
abci "github.com/tendermint/abci/types"
"github.com/tendermint/go-crypto"
"github.com/tendermint/go-wire/data"
-
+ "github.com/blockchain/protocol/bc"
"github.com/blockchain/p2p"
"github.com/blockchain/types"
)
+type BlockNonce [8]byte
+
type ResultBlockchainInfo struct {
LastHeight int `json:"last_height"`
BlockMetas []*types.BlockMeta `json:"block_metas"`
Peers []Peer `json:"peers"`
}
+type ResultBlockHeaderInfo struct {
+ Version uint64 `json:"version"`
+ Height uint64 `json:"height"`
+ MerkleRoot bc.Hash `json:"merkleroot"`
+ PreviousBlockHash bc.Hash `json:"prevblockhash"`
+ TimestampMS uint64 `json:"timestamp"`
+ Bits uint64 `json:"bits"`
+ Nonce uint64 `json:"nonce"`
+}
+
type ResultDialSeeds struct {
Log string `json:"log"`
}