input-output-hk / rust-byron-cardano

rust client libraries to deal with the current cardano mainnet (byron / cardano-sl)
MIT License
264 stars 75 forks source link

allow transaction without inputs or outputs #738

Closed NicolasDP closed 5 years ago

NicolasDP commented 5 years ago

the fee/balance will do the work

FYI @dkijania and @CodeSandwich

CodeSandwich commented 5 years ago

Is transaction with no inputs, no outputs and linear fee without constant value valid? Will it start being accepted?

What about shredder transaction with inputs but no output, is it ever acceptable?

NicolasDP commented 5 years ago

multiple cases:

  1. no inputs, no outputs and no certificates are covered by the constant fee setting. They will be rejected;
  2. everything else requires an exact balance. It needs to include fees and the necessary inputs/outputs
CodeSandwich commented 5 years ago

Is the exact balance requirement already enforced? We still haven't solved the problem of positive balance with value lower than fee for addition of another output, but it works anyway.

vincenthz commented 5 years ago

@CodeSandwich it's enforced at the moment, although yes there's some case that are quite complicated.. which I personally think is endemic to the problem of using utxo instead of accounts