diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-02 19:05:13 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-02 19:05:13 +0800 |
commit | 14c14fd61f72bfa8c1494fa799a4f2e2eb14f4c1 (patch) | |
tree | 9701a4a48df8caa9cb05c75511df5d6f74bfb104 | |
parent | 2efb89d5440a9e43bec75b5f59032a0ff0cdc3cc (diff) | |
download | dexon-14c14fd61f72bfa8c1494fa799a4f2e2eb14f4c1.tar.gz dexon-14c14fd61f72bfa8c1494fa799a4f2e2eb14f4c1.tar.zst dexon-14c14fd61f72bfa8c1494fa799a4f2e2eb14f4c1.zip |
Output empty block as nil
-rw-r--r-- | rpc/responses.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/responses.go b/rpc/responses.go index f1dc344db..3d1687cb6 100644 --- a/rpc/responses.go +++ b/rpc/responses.go @@ -128,7 +128,7 @@ func NewBlockRes(block *types.Block, fullTx bool) *BlockRes { // TODO respect fullTx flag if block == nil { - return &BlockRes{} + return nil } res := new(BlockRes) |