Add coinbase check functionality

Signed-off-by: Huang Le <4tarhl@gmail.com>