neo-go/pkg/rpc
Roman Khimov de2eeb4671 rpc: add one to the block height for the getblockcount response
There is a difference in interpretation of what a block count is. neo-go nodes
currently respond to this request with the latest block number which is the
same number that neoscan.io shows. However, C# nodes deliberately do add one
to this number when answering to the getblockcount request to account for the
genesis block number 0.

This patch makes us consistent with C# nodes wrt to getblockcount behaviour.
2019-11-01 20:13:00 +03:00
..
result RCP server (#50) 2018-03-23 21:36:59 +01:00
testdata core: verify blocks, fix #12 2019-10-15 18:58:17 +03:00
wrappers rpc/core: implement invokescript method, fix #348 2019-10-29 18:31:39 +03:00
client.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
doc.go rpc: split README into developer and user parts 2019-09-18 12:10:12 +03:00
errors.go Fix #140 (improve error message) (#142) 2019-02-20 16:28:11 +00:00
neoScanBalanceGetter.go rpc: fix bad name spellings noted by golint 2019-09-03 18:16:48 +03:00
neoScanTypes.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
param.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
params.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
prometheus.go monitoring: add prometheus monitoring 2019-10-29 20:51:17 +03:00
request.go rpc: add CORS workaround for RPC 2019-11-01 13:39:47 +03:00
rpc.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
server.go rpc: add one to the block height for the getblockcount response 2019-11-01 20:13:00 +03:00
server_helper_test.go rpc: add CORS workaround for RPC 2019-11-01 13:39:47 +03:00
server_test.go rpc: add one to the block height for the getblockcount response 2019-11-01 20:13:00 +03:00
stack_param.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
stack_param_test.go uint256: add Reverse(), change String() to be BE 2019-08-26 13:32:19 +03:00
txBuilder.go io: redo Serializable to return errors in BinReader/BinWriter 2019-09-17 13:21:52 +03:00
txTypes.go *: gofmt -s 2019-09-09 12:02:24 +03:00
types.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00