CREDITSCOM / node

Credits Node is the main module that provide an opportunity to run a node and participate in CREDITS blockchain network.
https://developers.credits.com/
GNU Affero General Public License v3.0
151 stars 16 forks source link

Some balance needed for contract execution with 'NewState' set to true #17

Closed tkoen93 closed 5 years ago

tkoen93 commented 5 years ago

Describe the bug To request the current state of a contract it's possible to initiate a transaction and set the NewState parameter to true. Those transactions need to be signed by a valid keypair, but will not go into the consensus protocol if I'm not mistaken. That means that there is no fee that needs to be paid.

I experienced the following issue: while creating a transaction with an empty wallet and NewState set to true, the return message I receive mentions the following: max fee is not enough, counted fee will be 0.000482

That message makes sense, only if I set NewState to false. As I don't have to pay any fee with this transaction it looks incorrect to me.

To Reproduce Steps to reproduce the behavior:

Expected behavior Returning the requested value instead of showing this error message.

Screenshots image

botstorm commented 5 years ago

The Flag NewState=true asks the node not to send transactions, but to perform the specified method specified by the target key of the smart contract

The fix you specified will be in the next updates.

tkoen93 commented 5 years ago

Works perfect in testnet v4.2.417. Thanks!