forked from TrueCloudLab/neoneo-go
rpc: comment out getBlock and getRawTransaction
After the 8388f4a55e
Golint quickly pointed that
these are unused, so comment 'em out for now.
This commit is contained in:
parent
6bfcc615b2
commit
2c2f91564f
1 changed files with 25 additions and 23 deletions
|
@ -12,19 +12,20 @@ import (
|
||||||
|
|
||||||
// getBlock returns a block by its hash or index/height. If verbose is true
|
// getBlock returns a block by its hash or index/height. If verbose is true
|
||||||
// the response will contain a pretty Block object instead of the raw hex string.
|
// the response will contain a pretty Block object instead of the raw hex string.
|
||||||
func (c *Client) getBlock(indexOrHash interface{}, verbose bool) (*response, error) {
|
// missing output wrapper at the moment, thus commented out
|
||||||
var (
|
// func (c *Client) getBlock(indexOrHash interface{}, verbose bool) (*response, error) {
|
||||||
params = newParams(indexOrHash)
|
// var (
|
||||||
resp = &response{}
|
// params = newParams(indexOrHash)
|
||||||
)
|
// resp = &response{}
|
||||||
if verbose {
|
// )
|
||||||
params = newParams(indexOrHash, 1)
|
// if verbose {
|
||||||
}
|
// params = newParams(indexOrHash, 1)
|
||||||
if err := c.performRequest("getblock", params, resp); err != nil {
|
// }
|
||||||
return nil, err
|
// if err := c.performRequest("getblock", params, resp); err != nil {
|
||||||
}
|
// return nil, err
|
||||||
return resp, nil
|
// }
|
||||||
}
|
// return resp, nil
|
||||||
|
// }
|
||||||
|
|
||||||
// GetAccountState will return detailed information about a NEO account.
|
// GetAccountState will return detailed information about a NEO account.
|
||||||
func (c *Client) GetAccountState(address string) (*AccountStateResponse, error) {
|
func (c *Client) GetAccountState(address string) (*AccountStateResponse, error) {
|
||||||
|
@ -79,16 +80,17 @@ func (c *Client) Invoke(script string, params []smartcontract.Parameter) (*Invok
|
||||||
}
|
}
|
||||||
|
|
||||||
// getRawTransaction queries a transaction by hash.
|
// getRawTransaction queries a transaction by hash.
|
||||||
func (c *Client) getRawTransaction(hash string, verbose bool) (*response, error) {
|
// missing output wrapper at the moment, thus commented out
|
||||||
var (
|
// func (c *Client) getRawTransaction(hash string, verbose bool) (*response, error) {
|
||||||
params = newParams(hash, verbose)
|
// var (
|
||||||
resp = &response{}
|
// params = newParams(hash, verbose)
|
||||||
)
|
// resp = &response{}
|
||||||
if err := c.performRequest("getrawtransaction", params, resp); err != nil {
|
// )
|
||||||
return nil, err
|
// if err := c.performRequest("getrawtransaction", params, resp); err != nil {
|
||||||
}
|
// return nil, err
|
||||||
return resp, nil
|
// }
|
||||||
}
|
// return resp, nil
|
||||||
|
// }
|
||||||
|
|
||||||
// sendRawTransaction broadcasts a transaction over the NEO network.
|
// sendRawTransaction broadcasts a transaction over the NEO network.
|
||||||
// The given hex string needs to be signed with a keypair.
|
// The given hex string needs to be signed with a keypair.
|
||||||
|
|
Loading…
Reference in a new issue