memoriesadrift / tuw-cryptocurrencies-blockchain

Blockchain created for the Cryptocurrencies course at TU Wien
0 stars 0 forks source link

T1: Cleanup for Submission #7

Closed memoriesadrift closed 11 months ago

memoriesadrift commented 11 months ago

Description

Various smaller tasks to make sure submission is OK.

If your node receives a valid message with different type than hello, getpeers or peers, you are not required to determine its validity in this task. You should not, however, close the connection if such a message is sent to you. For instance, if your node receives a {"type":"getchaintip"} message, then you should just ignore this message for now.

Test creating and running the source code as if it were being submitted, see readme.

Scope

  1. Ignore method calls that we don't currently support
  2. Test for submission
memoriesadrift commented 11 months ago

The implementation I went with in #12 should ignore all unsupported method calls by default :)