Block binary decoding + transaction types

This commit is contained in:
anthdm 2018-01-31 11:47:54 +01:00
parent 0c9d2dd04e
commit 55b4ab4192
5 changed files with 96 additions and 15 deletions

View file

@ -258,7 +258,8 @@ func (s *Server) handleInvCmd(inv *payload.Inventory, peer Peer) error {
}
func (s *Server) handleBlockCmd(block *core.Block, peer Peer) error {
fmt.Println("received a block yyyyyyeeeeeehhhhh!")
fmt.Println("Block received")
fmt.Printf("%+v\n", block)
return nil
}