Commit Graph

534 Commits

Author SHA1 Message Date
Christian Grothoff
66fa3559c8
missing tests 2020-03-22 14:52:39 +01:00
Christian Grothoff
bdbe923bf6
check for right type 2020-03-22 14:51:36 +01:00
Christian Grothoff
adef4a91ca
the big EC rename, part II 2020-03-22 01:06:53 +01:00
Christian Grothoff
744322fdda
the big EC rename 2020-03-22 00:50:18 +01:00
Christian Grothoff
db61bc3bbe
cleanup 2020-03-21 19:49:18 +01:00
Christian Grothoff
bad9c719f8
stylefixes 2020-03-21 19:46:21 +01:00
Christian Grothoff
0d2bf1a75e
comment 2020-03-21 19:41:09 +01:00
Christian Grothoff
c277dc2a18
style fixes 2020-03-21 19:39:46 +01:00
Christian Grothoff
e5e6c9b6b4
minor style improvement 2020-03-21 19:30:24 +01:00
Christian Grothoff
f1d3364313
code cleanup, deduplication, DCE 2020-03-21 19:25:53 +01:00
Christian Grothoff
ca943e8c3f
fix FTBFS issue on some platforms 2020-03-21 18:15:11 +01:00
Christian Grothoff
88fd81e5da
completing auditor split 2020-03-21 16:09:22 +01:00
Christian Grothoff
a8b8258e12
steps towards new split-auditor logic 2020-03-21 12:56:16 +01:00
Christian Grothoff
2ace9969b7
rename fest on refactored auditor logic 2020-03-21 11:05:51 +01:00
Christian Grothoff
66616a97d7
working on splitting auditor 2020-03-20 22:34:17 +01:00
Christian Grothoff
59a5b1ceb8
a first, untested stab at #6123, committing intermediate result that passes (existing) tests 2020-03-17 22:13:15 +01:00
Christian Grothoff
4322bbf2f1
move common logic to parse currency into libtalerutil 2020-03-15 20:08:38 +01:00
Christian Grothoff
d9c3627bc5
run closer and transfer with aggregator, check if we actually did get deposit confirmations before running #24 2020-03-14 17:46:53 +01:00
Christian Grothoff
f13f030777
reset is unnecessary, we did just drop and recreate the entire DB 2020-03-13 19:34:52 +01:00
Christian Grothoff
ffcadbff8c
code cleanup (comments, scoping, naming, indentation) 2020-03-07 00:28:07 +01:00
Christian Grothoff
52d41311ac
new coins => fresh coins, also move comments into the database itself 2020-03-05 23:49:47 +01:00
Christian Grothoff
a49bfef2fb
rename for consistency 2020-03-05 23:02:38 +01:00
Christian Grothoff
6cc516427b
minor code clean up, renaming for consistency 2020-03-04 11:47:22 +01:00
Christian Grothoff
113f3891d1
removing dead code, using more named constants, checking return values better 2020-03-01 17:51:46 +01:00
Christian Grothoff
0a2b049864
big rename fest related to #6067 API renaming 2020-02-29 16:42:10 +01:00
Christian Grothoff
30b24448c8
do not NPE if encountering reserve_close for which we have no summary 2020-02-25 14:21:14 +01:00
Christian Grothoff
47e8190e9d
fix pp update logic to not insert multiple pps 2020-02-25 14:20:41 +01:00
Christian Grothoff
548a0cc09d
do not NPE if encountering reserve_close for which we have no summary 2020-02-25 14:12:28 +01:00
Christian Grothoff
bb0952ac8d
fix some auditor assertions (see #6106) 2020-02-23 22:01:27 +01:00
Christian Grothoff
176113a62a
fix some auditor assertions (see #6106) 2020-02-23 21:52:18 +01:00
Christian Grothoff
a66b9e1b8a
fix loglevel 2020-02-23 19:55:59 +01:00
Christian Grothoff
65434a0e00
fix return value in auditor logic, and check it as well; adding FIXME to mark improperly handled case 2020-02-23 19:55:21 +01:00
Christian Grothoff
730a9b966f
check return value 2020-02-17 20:00:03 +01:00
Christian Grothoff
37c2915769
do not report missing reserve closures of amount 0.0 2020-02-08 17:55:22 +01:00
Christian Grothoff
db46491db9
fix uninitialized session 2020-02-08 17:49:56 +01:00
Christian Grothoff
964cd7a459
adding test for #6054 (duplicate WTID) 2020-02-08 17:41:27 +01:00
Christian Grothoff
9e0a813b38
implement auditor's exchange signing key caching (#6052) 2020-02-05 21:12:03 +01:00
Christian Grothoff
5a11839002
add timetravel option for testing/debugging 2020-02-04 15:47:57 +01:00
Christian Grothoff
4c8f7799da
add config option for new bank 2020-01-20 14:26:42 +01:00
Christian Grothoff
5604a266d0
new DB 2020-01-20 14:22:56 +01:00
Christian Grothoff
43f7cf3d07
push mpub 2020-01-20 03:02:05 +01:00
Christian Grothoff
df37433f4d
useless 2020-01-20 02:53:23 +01:00
Christian Grothoff
aaa57167db
add exchange key during test 2020-01-20 02:43:48 +01:00
Florian Dold
26ad7c8191
spelling of 'mismatch' 2020-01-20 02:11:03 +01:00
Christian Grothoff
6445558065
fix auditor issues 2020-01-19 21:51:13 +01:00
Christian Grothoff
84fd301313
fix option 2020-01-19 21:13:52 +01:00
Christian Grothoff
9cc2c7a208
fix option 2020-01-19 21:01:57 +01:00
Christian Grothoff
4f4b0349a5
add missing option 2020-01-19 21:01:33 +01:00
Christian Grothoff
4fac247bc7
use TALER_config_get_amount() consistently, require currency rounding option to exist instead of defaulting 2020-01-19 20:57:32 +01:00
Christian Grothoff
5da9cfc51c
clean up amount logic, fix 2^53 check 2020-01-19 19:39:14 +01:00
Christian Grothoff
d22a52cc7a
fix copyright headers as per CA 2020-01-19 19:21:58 +01:00
Christian Grothoff
cf2e77c929
fix section name 2020-01-19 19:19:20 +01:00
Florian Dold
cb58740fbd
remove redundant METHOD option, we can derive it from PAYTO_URI 2020-01-19 19:12:47 +01:00
Florian Dold
6074790867
config syntax for accounts 2020-01-19 18:48:23 +01:00
Florian Dold
fc8bdb9b97
consistently use payto URI instead of URL 2020-01-19 17:03:19 +01:00
Christian Grothoff
dbf85bbc0d
clarify FIXMEs 2020-01-19 14:53:31 +01:00
Christian Grothoff
fbc375092f
old DBs only 2020-01-19 14:27:49 +01:00
Christian Grothoff
342cccc384
do not rely on filetime, as Git does not preserve it 2020-01-19 14:22:34 +01:00
Christian Grothoff
52bdff7867
get auditor to pass with refund 2020-01-19 02:46:17 +01:00
Christian Grothoff
58e5780917
fix aggregator fee calculation logic 2020-01-19 02:28:14 +01:00
Christian Grothoff
021a2003d5
adjust tests 2020-01-19 02:28:14 +01:00
Christian Grothoff
db669ee495
payback -> recoup stranglers 2020-01-18 23:49:37 +01:00
Christian Grothoff
ff35a1d229
deduplicate doxyfiles, integrate with build 2020-01-18 23:19:48 +01:00
Christian Grothoff
dfd58b33e8
fix leaks 2020-01-18 22:08:06 +01:00
Christian Grothoff
6fc2a5f949
fixes 2020-01-18 20:50:25 +01:00
Christian Grothoff
5c46951821
fix warnings 2020-01-18 19:28:17 +01:00
Christian Grothoff
d58af13887
fix assertion 2020-01-18 18:17:38 +01:00
Christian Grothoff
ee6b2d5286
fix leak 2020-01-18 18:14:33 +01:00
Christian Grothoff
c5c04cb51f
fix -Wextra warnings 2020-01-18 17:53:54 +01:00
Christian Grothoff
fef001cfdd
fix test_23 2020-01-18 17:38:56 +01:00
Christian Grothoff
ef4cb1b7c9
test 19 is obsolete 2020-01-18 14:01:13 +01:00
Christian Grothoff
e0fbfb68fd
provide account_section for all wire out inconsistencies 2020-01-18 13:35:43 +01:00
Christian Grothoff
d972a26e1b
generate 11.5-compatible db 2020-01-18 13:27:29 +01:00
Florian Dold
f39ebe7402
auditor test: re-generate database with fixed merchant bank account 2020-01-18 13:20:36 +01:00
Florian Dold
8e0180b257
remove more redundant args 2020-01-18 04:39:52 +01:00
Christian Grothoff
86cd17e265
fix SQL 2020-01-17 23:56:03 +01:00
Christian Grothoff
788fd67984
doxygen 2020-01-17 23:50:49 +01:00
Florian Dold
d95f2a9e43
DCE, part one 2020-01-17 23:40:44 +01:00
Christian Grothoff
f0d8311b1c
fix test 2020-01-17 23:34:42 +01:00
Christian Grothoff
1255ec9a15
update DB 2020-01-17 23:32:06 +01:00
Christian Grothoff
4dc8092f83
auditor fixes 2020-01-17 23:27:40 +01:00
Christian Grothoff
96543f62ef
updates to auditor test 2020-01-17 23:21:14 +01:00
Florian Dold
135b53d4a2
test-auditor config 2020-01-17 23:05:39 +01:00
Christian Grothoff
379d261769
fix format string 2020-01-17 23:02:55 +01:00
Florian Dold
d567bfe237
adjust config and timeouts 2020-01-17 23:02:33 +01:00
Christian Grothoff
b322614eb2
doxygen 2020-01-17 23:01:17 +01:00
Florian Dold
404888b0a2
fix config 2020-01-17 22:43:55 +01:00
Christian Grothoff
72f07dde5b
doxygen 2020-01-17 22:40:18 +01:00
Christian Grothoff
59f0fb9fe7
regenerate DB 2020-01-17 22:32:08 +01:00
Florian Dold
3083dc76e4
auditor basedb config 2020-01-17 22:25:14 +01:00
Christian Grothoff
108bf01f11
doxygen fixes 2020-01-17 22:24:18 +01:00
Christian Grothoff
be476659a3
link to bug report 2020-01-17 20:53:48 +01:00
Christian Grothoff
23cc4a521f
TODO is already done 2020-01-17 20:02:25 +01:00
Florian Dold
7378b5a081
amount rounding a la Christian 2020-01-17 18:59:15 +01:00
Christian Grothoff
2ffabd394c
fix reserve_pub-via-reserve_priv FIXME 2020-01-17 17:29:44 +01:00
Christian Grothoff
b7a77805dc
fix configuration 2020-01-17 17:21:58 +01:00
Christian Grothoff
1759b63b2f
abort wire audit if bank fails to return histories 2020-01-17 15:14:07 +01:00
Christian Grothoff
263d36f7a5
report affected account 2020-01-17 15:09:36 +01:00
Christian Grothoff
e88ad199e6
FIXME is not needed, explain why 2020-01-17 15:02:27 +01:00
Christian Grothoff
0145609890
fix FIXME: total up irregular paybacks and add to report 2020-01-17 15:00:32 +01:00
Christian Grothoff
7242b9b960
add TODO 2020-01-17 13:10:42 +01:00
Christian Grothoff
4e125d8eda
check for key expiration 2020-01-17 13:09:20 +01:00
Christian Grothoff
31b413fed2
simplify DB logic in auditor-httpd 2020-01-17 13:06:28 +01:00
Christian Grothoff
862448305c
simplify DB logic in auditor-httpd 2020-01-17 13:06:12 +01:00
Christian Grothoff
11a9dc2b4f
simplify DB logic in auditor-httpd 2020-01-17 13:05:29 +01:00
Florian Dold
cc862fb279
payto fixes WIP 2020-01-17 02:23:48 +01:00
Florian Dold
6faf6fc732
payto fixes WIP 2020-01-17 01:23:32 +01:00
Christian Grothoff
d61c2e400a
kill another FIXME 2020-01-16 23:49:34 +01:00
Christian Grothoff
0305cf5f9e
move function to libtalerexchangedb, as planned 2020-01-16 22:40:12 +01:00
Christian Grothoff
19922fa046
pointless to check denom_sig, do not return 2020-01-16 22:21:18 +01:00
Christian Grothoff
6dcd37504a
fix 2020-01-16 20:41:50 +01:00
Florian Dold
da5b3ba8ae
round amounts based on config, do unit test for rounding 2020-01-15 15:17:25 +01:00
Marcello Stanisci
d822035216
Remove preflight checks where redundant. 2020-01-15 14:34:35 +01:00
Marcello Stanisci
e77ccd0390
Preflight checks:
put preflight check inside exchangedb start()
function, and provide a preflight method for
auditordb.
2020-01-15 12:36:09 +01:00
Christian Grothoff
88cb57de83
fix link 2020-01-13 23:14:50 +01:00
Christian Grothoff
7b1909bc99
make fakebank and banklib match specifified new API 2020-01-13 22:01:45 +01:00
Christian Grothoff
2d16cddfd9
die, dead #include, die 2020-01-13 18:19:21 +01:00
Christian Grothoff
4d6ef1da29
eliminate libtalerwire 2020-01-13 18:16:01 +01:00
Christian Grothoff
9443c10d7f
major refactoring, eliminating wire-plugins and moving towards new bank API. main code compiles, testcases known to fail, code sure not to fully work yet 2020-01-11 15:20:17 +01:00
Christian Grothoff
3a9d7afe33
another fix where hardcoded serial number can point to the wrong transaction 2019-12-24 22:53:13 +01:00
Christian Grothoff
0ec3301cfb
make auditor more robust to DB permutations 2019-12-24 22:28:27 +01:00
Christian Grothoff
202a464bb3
new DB 2019-12-24 21:20:40 +01:00
Christian Grothoff
8baf591ded
use wait 2019-12-24 21:20:32 +01:00
Christian Grothoff
2a8383dd94
just to be sure 2019-12-24 21:20:15 +01:00
Christian Grothoff
9e1c7cc152
clean up shell script, fix heisenbug 2019-12-24 21:16:28 +01:00
Christian Grothoff
df0237ab94
support -l/-L options, improve logging 2019-12-24 20:21:54 +01:00
Christian Grothoff
8b5a0278df
nicer logging 2019-12-24 16:19:53 +01:00
Christian Grothoff
1970b7687c
report cases of missing denomination keys more nicely 2019-12-24 16:04:30 +01:00
Christian Grothoff
32ec655418
handle denomination key not found better 2019-12-24 15:58:23 +01:00
Christian Grothoff
a3b56975a4
use acceptable bank debit limit 2019-12-23 12:28:15 +01:00
Christian Grothoff
d5b8089264
use taler-bank-manage-testing wrapper in auditor test logic as well 2019-12-23 12:13:10 +01:00
Christian Grothoff
e0cf954ad9
make exchange test suite work with current bank 2019-12-23 11:47:16 +01:00
Christian Grothoff
8af89ff197
misc release preparations: mostly fixing 'make dist' target 2019-12-20 20:10:46 +01:00
Christian Grothoff
dd66d2ae7b
work on test 2019-12-07 22:08:58 +01:00
Christian Grothoff
0d53d893f5
fix start time 2019-12-07 21:59:05 +01:00
Christian Grothoff
fdb768653e
regenerate test DB with latest crypto 2019-12-07 21:32:52 +01:00
Christian Grothoff
91a418fe80
add valgrind prefix capability 2019-12-07 17:02:20 +01:00
Christian Grothoff
5a96c528b3
mark unused argument 2019-12-07 16:51:24 +01:00
Christian Grothoff
b164e090dc
check total loss initially 2019-12-07 14:27:55 +01:00
Christian Grothoff
25a0b60f12
implement #5967: have ranges in auditor reports, untested because right now tests somehow do not work 2019-12-03 12:39:32 +01:00
Christian Grothoff
f1639c09a2
implement #5740 2019-12-01 13:31:45 +01:00
Christian Grothoff
633ae7edd1
cleanup 2019-11-23 22:27:27 +01:00
Christian Grothoff
7510b6310b
more libtalermhd migration 2019-11-23 22:26:27 +01:00
Christian Grothoff
7aae6c9045
use CONFLICT for double spending to distinguish properly from FORBIDDEN for bad signatures 2019-11-23 22:21:47 +01:00
Christian Grothoff
e8a88392da
more refactoring towards using libtalermhd 2019-11-23 18:47:07 +01:00
Christian Grothoff
8bca461ea9
first uses of libtalermhd 2019-11-23 17:55:47 +01:00
Christian Grothoff
385b3e77df
tighten formatting rules 2019-10-31 12:59:50 +01:00
Christian Grothoff
55dd10e947
activate now passing test #25" 2019-10-29 11:36:25 +01:00
Christian Grothoff
a1b01f1195
better auditor logging 2019-10-29 11:31:56 +01:00
Christian Grothoff
956f6dcab4
disable failing test 2019-10-26 22:36:57 +02:00
Christian Grothoff
c308e89eaa
add test to check deposit inconsistency detection logic 2019-10-26 22:36:40 +02:00
Christian Grothoff
7b1d8024db
modify auditor generator to properly create deposit confirmations 2019-10-26 21:49:50 +02:00
Christian Grothoff
88bbb91dce
force auditor reporting when generating auditor test 2019-10-26 21:04:01 +02:00
Christian Grothoff
bfb6306d18
add auditor test #24: wire out amount inconsistency detection 2019-10-17 21:52:54 +02:00
Christian Grothoff
9adc4c9ffc
fix ftbfs 2019-10-11 19:02:07 +02:00
Christian Grothoff
d40f01b634
expand test to cover withdrawing expired denominations, fix auditor-report template 2019-10-09 14:23:37 +02:00
Christian Grothoff
4e54a41fe3
use denomination key issue data from adb, not edb 2019-10-09 14:22:42 +02:00
Christian Grothoff
0d5a3d7b6f
more comprehensive test-auditor.sh, including generate-auditor-basedb now 2019-10-08 18:49:25 +02:00
Christian Grothoff
bde4c742de
add logic to generate fresh database 2019-10-08 18:11:22 +02:00
Christian Grothoff
d585c40996
add test for missing wire transfer for reserve closure 2019-10-06 20:49:18 +02:00
Christian Grothoff
c776a5f51e
ignore 2019-10-06 16:57:39 +02:00
Christian Grothoff
165929a877
consider reserve closures as well when auditing outgoing wire transfers 2019-10-06 16:54:09 +02:00
Christian Grothoff
e308d83f1b
fix totaling up 2019-10-06 12:46:57 +02:00
Christian Grothoff
97075502e0
fix testcase, enable new testcases 2019-10-06 12:32:49 +02:00
Christian Grothoff
03439cac91
re-add database 2019-10-06 12:32:20 +02:00
Christian Grothoff
5bc1db27dd
re-enable auditor test 2019-10-06 12:32:13 +02:00
Christian Grothoff
7bd1a8ff09
re-add database 2019-10-06 12:31:56 +02:00
Christian Grothoff
e387a11593
disable test-auditor.sh, need working taler-wallet-cli first 2019-10-05 15:47:45 +02:00
Christian Grothoff
52bbfe926b
add uncrustify pre-commit hook 2019-10-05 15:12:47 +02:00
Christian Grothoff
041ba85c6a
add test for wire transfer subject malformed (mark as done) 2019-09-30 22:12:13 +02:00
Christian Grothoff
11b643dd83
add test for wire transfer subject malformed 2019-09-30 22:11:24 +02:00
Marcello Stanisci
6b2a84dfe1
Allow uWSGI to TERMinate on slower systems. 2019-09-29 14:50:05 +02:00
Christian Grothoff
160a4ef52c
add test for emergencies, and associated bugfixes to auditor and auditor report 2019-09-28 20:53:44 +02:00
Christian Grothoff
14c7e45e97
nicer message in -r error case 2019-09-26 10:29:43 +02:00
Christian Grothoff
3b3daa75a8
fix #5903 2019-09-26 10:23:50 +02:00
Christian Grothoff
0647bec86c
ign 2019-09-15 13:10:11 +02:00
Christian Grothoff
3a8581bc5e
hide kill output 2019-09-15 12:01:42 +02:00
Marcello Stanisci
5a132a2f0f
to lower case.. 2019-09-13 21:22:51 +02:00
Marcello Stanisci
4428469556
FPRINTF -> fprintf 2019-09-13 13:01:28 +02:00
Christian Grothoff
049e9c89c1
update Makefile.am 2019-09-06 03:08:49 +02:00
Christian Grothoff
07502333a7
notes 2019-09-06 03:08:23 +02:00
Christian Grothoff
58c3e4d98f
move basedb generation to auditor/ 2019-09-06 02:45:57 +02:00
Marcello Stanisci
b93fbac1cc
fix auditor test 2019-09-05 14:17:13 +02:00
Christian Grothoff
fa54d42dc3
give up launching bank eventually 2019-09-05 14:09:39 +02:00
Christian Grothoff
1576a1d048
make test more robust 2019-09-05 11:59:10 +02:00
Christian Grothoff
997b40e705
fix tests 2019-09-05 10:59:03 +02:00
Christian Grothoff
8e9ce98661
bugnotes, minor fix 2019-09-05 10:40:44 +02:00
Christian Grothoff
1e685a0241
use shorter sleep, tolerate slight execution date disagreements between exchange and bank in auditor 2019-09-05 10:36:14 +02:00
Christian Grothoff
e0979ecf5e
fix test wrt lag 2019-09-05 10:21:33 +02:00
Christian Grothoff
afe455c0b6
more auditor tests 2019-09-05 10:04:17 +02:00
Christian Grothoff
b7454aadc4
add test 14 2019-09-05 08:14:58 +02:00
Christian Grothoff
f16a4c5b21
add test for hung refresh and wrong refresh sig, fix audit report formatting issue(s) 2019-09-05 06:30:36 +02:00
Christian Grothoff
d4905d7e2c
handle wirefee issues better 2019-09-05 05:49:45 +02:00
Christian Grothoff
cc5297a7f1
pass wire fees to aggregator in test case 2019-09-05 05:49:25 +02:00
Christian Grothoff
dc5a779195
fix memory leak 2019-09-05 03:56:27 +02:00
Christian Grothoff
e5cf603963
fix taler-wire-auditor crash 2019-09-05 03:52:26 +02:00
Christian Grothoff
5cabe157dc
fix lag reporting 2019-09-04 05:16:04 +02:00
Christian Grothoff
4b5de800dc
add test 11 2019-09-04 04:11:40 +02:00
Christian Grothoff
e975dd3bdd
fix test 2019-09-04 04:07:57 +02:00
Christian Grothoff
97ca10d835
more auditor tests, misc auditor bugfixes 2019-09-04 04:06:16 +02:00