Bump to v3.4; make all transactions balanced using hidden accounts

See UPGRADING.md for details.
This commit is contained in:
Juerd Waalboer 2022-06-11 18:51:05 +02:00
parent e3a04a0e36
commit 441bf05fde
14 changed files with 116 additions and 40 deletions

View file

@ -55,7 +55,7 @@ sub hook_reject($class, $plugin, $reason, $abort, @) {
}
sub hook_user_balance($class, $username, $old, $delta, $new, @) {
return if hidden $username;
return if hidden $username and not $ENV{REVBANK_DEBUG};
my $sign = $delta->cents >= 0 ? '+' : '-';
my $rood = $new->cents < 0 ? '31;' : '';
@ -67,7 +67,7 @@ sub hook_user_balance($class, $username, $old, $delta, $new, @) {
}
sub hook_user_created($class, $username, @) {
return if hidden $username;
return if hidden $username and not $ENV{REVBANK_DEBUG};
say "New account '$username' created.";
}