Reward service message.
More...
|
int | type = 8 |
| Type ID of reward service message. More...
|
|
def Messages.RewardMessage.__init__ |
( |
|
self, |
|
|
|
reward_value, |
|
|
|
msg_hash |
|
) |
| |
Constructor.
- Parameters
-
self | The object pointer. |
reward_value | Assigned reward value. |
msg_hash | Hash value of the packet. |
- Returns
- None
def Messages.RewardMessage.__str__ |
( |
|
self | ) |
|
Default print method.
- Parameters
-
- Returns
- String with "TYPE: , ID: , REWARD_VALUE: , MSG_HASH: ".
Messages.RewardMessage.id |
Messages.RewardMessage.msg_hash |
Hash value of the data packet this Reward message replies to.
This hash value is calculated from two attributes of the data/service packet: destination IP of the packet, and the MAC address of a receiving node.
Messages.RewardMessage.reward_value |
Assigned reward value.
This reward value is calculated and sent back by a node after it has received the packet with a given (destination IP + MAC address) pair.
int Messages.RewardMessage.type = 8 |
|
static |
Type ID of reward service message.
The documentation for this class was generated from the following file: