wavelet-bin
wavelet-bin copied to clipboard
Weird behavior when sending empty transactions
When trying to send a transaction without a recipient ( a public key ) and without an amount, 1 perl + 2 more perls not shown in the payload, I guess validator reward, so total of 3 perls. goes to the main node ( the first node when creating the test test). In this case, the first node is also staking more than 2500 perls:
Beginning ledger:
{
"71e6c9b83a7ef02bae6764991eefe53360a0a09be53887b2d3900d02c00a3858": {
"Nonce": 122,
"State": {
"balance": 99977524,
"stake": 12500
}
},
"ec8bbc01d1e54294bca7ddef9b2919b2ae7739a216aad23d06dfeab4a0d83c15": {
"Nonce": 132,
"State": {
"balance": 9976
}
}
}
Empty transaction ( meaning no recipient and no amount ) from 2nd node to first node ( staking ):
{
"id": "1dc2816981f26e1709f1cc137fdb9c539e1042ee34e719cd80bc94c289ae2aab",
"sender": "ec8bbc01d1e54294bca7ddef9b2919b2ae7739a216aad23d06dfeab4a0d83c15",
"nonce": 132,
"tag": "transfer",
"payload": {
"recipient": "71e6c9b83a7ef02bae6764991eefe53360a0a09be53887b2d3900d02c00a3858",
"amount": 1
},
"signature": "pZ7zvpRCCVbgh6VWxLXApLFpjVr0Qg1CZ/b7Fi2HCdpt77/qw79/0uGhI5pJ9PpNezP63Unc5qj78PsWL3vbCg==",
"parents": [
"b7ea8d8196cf0d95dbea7dbe160a5a833ee33aba22ef169414bdcc7df503baf8"
]
}
Ledger now:
{
"71e6c9b83a7ef02bae6764991eefe53360a0a09be53887b2d3900d02c00a3858": {
"Nonce": 133,
"State": {
"balance": 99977527,
"stake": 12500
}
},
"ec8bbc01d1e54294bca7ddef9b2919b2ae7739a216aad23d06dfeab4a0d83c15": {
"Nonce": 133,
"State": {
"balance": 9973
}
}
}
Also, it happens the first time making empty transaction. The second time it sends 1 perl only: Second empty transaction:
{
"id": "af61e78c41091b69de20a1f41fac8574cb4a5046667dac78f6b8676661bffe34",
"sender": "ec8bbc01d1e54294bca7ddef9b2919b2ae7739a216aad23d06dfeab4a0d83c15",
"nonce": 144,
"tag": "transfer",
"payload": {
"recipient": "71e6c9b83a7ef02bae6764991eefe53360a0a09be53887b2d3900d02c00a3858",
"amount": 1
},
"signature": "qroM28uPoeqHb7mDUfGWbPR3g29SzlLVArdYTY1+iY6+TEXnEaaXL3NTOPbMLdt0wkS3vO/WasXsW1A7JCCuAw==",
"parents": [
"0985426e96a1f077683f9cf692b40811c18922090084594516dbe85ef4ca4aa6"
]
}
Ledger:
{
"71e6c9b83a7ef02bae6764991eefe53360a0a09be53887b2d3900d02c00a3858": {
"Nonce": 133,
"State": {
"balance": 99977528,
"stake": 12500
}
},
"ec8bbc01d1e54294bca7ddef9b2919b2ae7739a216aad23d06dfeab4a0d83c15": {
"Nonce": 145,
"State": {
"balance": 9972
}
}
}
After making some more transaction from the staking node, the next empty transaction from the second node again sends 3 perls.