Commit Graph

352 Commits

Author SHA1 Message Date
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
Christian Grothoff
161958a2bb
notes on next steps 2019-09-03 16:12:48 +02:00
Christian Grothoff
77da8db053
add test for wrong signature in reserve_out 2019-09-03 11:01:53 +02:00
Christian Grothoff
e9e58b7354
implement FIXME42: denomination signature checks (and test) in taler-auditor 2019-09-03 06:21:51 +02:00
Christian Grothoff
dd6a006201
bump test counter 2019-09-03 04:45:26 +02:00
Christian Grothoff
3eb0a3766f
add test for missing denomination signature checks 2019-09-03 04:44:48 +02:00
Christian Grothoff
e43b679337
expand test suite, minor style improvements 2019-09-03 04:29:43 +02:00
Christian Grothoff
05b92c2431
check h_wire/wire consistency 2019-09-03 04:16:28 +02:00
Christian Grothoff
736927f05a
another test, more fixes in auditor-report template 2019-09-03 03:14:23 +02:00
Christian Grothoff
67aeb85a13
misc. auditor bugfixes 2019-09-02 08:01:55 +02:00
Christian Grothoff
1891dfd4da
expand auditor test logic 2019-09-02 03:32:28 +02:00
Christian Grothoff
7b20ee8c8d
minor auditor report generation bugfixes: 2019-08-26 03:18:32 +02:00
Florian Dold
eb55997084
re-format code 2019-08-25 16:18:24 +02:00
Christian Grothoff
5cfb3d3b96
fix ftbfs 2019-08-25 15:40:47 +02:00
Christian Grothoff
1457e0adfc
skip accounts not configured for credit/debit 2019-08-24 23:14:15 +02:00
Christian Grothoff
322e97cb11
shutdown when done 2019-08-24 23:06:18 +02:00
Christian Grothoff
9044449f5b
round time 2019-08-24 22:53:32 +02:00
Christian Grothoff
71ae493c7a
refactor wire auditor to properly handle multiple accounts 2019-08-24 22:49:35 +02:00
Christian Grothoff
b5dd2bcdbb
indentation, discuss logic flaw, discuss todo in test-auditor.sh script 2019-08-23 21:14:50 +02:00
Christian Grothoff
135d365893
integrate auditor test into build system 2019-08-23 15:21:26 +02:00
Christian Grothoff
0d230131e6
check required commands exist 2019-08-23 15:17:54 +02:00
Christian Grothoff
b58410ce13
full audit generation in test 2019-08-23 15:10:10 +02:00
Christian Grothoff
6e6d6013be
fix test-auditor.sh check for no emergencies 2019-08-23 13:26:51 +02:00
Christian Grothoff
aba79636ab
more comments 2019-08-22 15:48:35 +02:00
Christian Grothoff
027f04a0f1
expand auditor test 2019-08-22 15:43:30 +02:00
Christian Grothoff
318f94bf90
update ignores 2019-08-22 15:30:02 +02:00
Christian Grothoff
5b2efa2b06
fixing #5767 2019-07-28 15:39:28 +02:00
Christian Grothoff
fbf94ee666
todos 2019-07-27 23:25:56 +02:00
Christian Grothoff
ccfe99a82d
more denom sig checking in auditor 2019-07-27 20:43:52 +02:00
Christian Grothoff
1057333666
add check that denomination was actually revoked if it is involved in /payback 2019-07-27 20:06:55 +02:00
Christian Grothoff
19c4feda56
handle payback cases when processing coin history in auditor 2019-07-26 22:03:15 +02:00
Christian Grothoff
d1c0c0f197
update auditordb to include payback losses 2019-07-25 19:26:25 +02:00
Christian Grothoff
03af37ef23
add ppc progress points for payback ops 2019-07-24 14:13:25 +02:00
Christian Grothoff
10e7f7c28c
fixing indentation only 2019-07-24 13:51:38 +02:00
Christian Grothoff
f1a9eaeb0b
fixing indentation only 2019-07-24 13:31:48 +02:00
Christian Grothoff
e9f43adb5b
use proper default configuration 2019-06-30 17:44:58 +02:00
Christian Grothoff
0ade45d315
log on no change to db 2019-06-30 17:29:09 +02:00
Christian Grothoff
7263711ad8
indenting 2019-06-30 17:13:02 +02:00
Christian Grothoff
72fea453aa
indenting 2019-06-30 17:13:01 +02:00
Christian Grothoff
9c194f79a5
adapt to GNUnet API change 2019-05-02 22:25:47 +02:00
Christian Grothoff
de9fdf860a
replace denom_pub with denom_pub_hash in exchange API to reduce bandwidth 2019-05-02 21:16:51 +02:00
ng0
79dcb72760
Refactor auditor/taler-wire-auditor.c for GNUNET_memcmp 2019-04-08 14:58:21 +00:00
ng0
0b8a87126b
Refactor auditor/taler-auditor.c for GNUNET_memcmp 2019-04-08 14:58:21 +00:00
Marcello Stanisci
3ccd61a89c
debug 2019-03-27 16:26:49 +01:00
Christian Grothoff
e235945df9
improve test case logging, fix process initialization of taler-auditor-exchange 2019-03-11 03:43:32 +01:00
Christian Grothoff
4dea098f54
actually disable 100 continue 2019-03-02 19:18:12 +01:00
Christian Grothoff
a98825675b
add option to be selective about dropping the exchange list 2019-02-14 14:23:16 +01:00
Marcello Stanisci
f68e7d0b07
Adding map: wire method name <--> plugin name. 2019-01-30 15:17:03 +01:00
Marcello Stanisci
452ab68423
fix DB 2019-01-29 22:05:23 +01:00
Marcello Stanisci
64de8a0fe6
Fix /deposit-confirmation as per JSON encode/decode. 2019-01-28 16:48:27 +01:00
Christian Grothoff
feec0d49ab
fix #5484 2019-01-08 19:10:38 +01:00
Christian Grothoff
7b10ad0851
fix numbering of EC codes, distinguish auditor DB store errors 2018-12-22 12:32:56 +01:00
Christian Grothoff
85aa6d17c7
fix misc. memory leaks 2018-11-25 14:51:31 +01:00
Christian Grothoff
a71756eee2
get auditor api test to pass (minimal version) 2018-11-18 14:41:27 +01:00
Christian Grothoff
ac850bfcd2
add auditing of deposit confirmations to auditor (#5447) 2018-11-04 17:36:56 +01:00
Christian Grothoff
332341cb7b
add check for #coins depoisted exceeding #coins issued (not just by amount), fixes #5446 2018-11-04 16:20:34 +01:00
Christian Grothoff
b39c3f9ca6
add missing default configs for auditor-httpd, make -u not mandatory as it is not needed for -r and check URL is well-formed if given; fix auditordb exchange insertion/removal logic 2018-11-04 10:48:32 +01:00
Christian Grothoff
ebc8ae68be
implement taler-auditor-exchange 2018-11-03 21:28:52 +01:00
Christian Grothoff
af41624591
implement /exchanges handler in auditor-httpd 2018-10-28 12:03:07 +01:00
Christian Grothoff
bd40aad7dc
track number of coins issued per denomination in auditor (not yet used) 2018-10-28 11:30:02 +01:00
Christian Grothoff
7b62deabac
split up progress points of auditor by coin/reserve/aggregation to minimize DB conflicts 2018-10-27 21:27:23 +02:00
Christian Grothoff
2024ccd2f9
complete auditor httpd side of deposit confirmation handling (auditordb not yet ready, though) 2018-10-27 19:26:17 +02:00
Christian Grothoff
4ad39b6b73
first skeleton of /deposit-confirmation API implementation; not yet complete, cannot work as-is, see FIXMEs 2018-10-21 20:52:26 +02:00
Christian Grothoff
eb1b6fbc97
add skeleton for auditor httpd 2018-10-06 17:29:03 +02:00
Christian Grothoff
a56e2e34bc
fix #5434 (no more salt in exchange wire replies) 2018-10-06 15:05:06 +02:00
Christian Grothoff
190a1fadaf
re-init logging so we can tell by PID who it is 2018-08-19 17:19:27 +02:00
Marcello Stanisci
eedb4dd4ed
auditor tool to reset db tables. 2018-04-23 17:04:19 +02:00
Christian Grothoff
aea82d3dcd
allow auditor to operate per-account 2018-04-02 21:12:18 +02:00
Christian Grothoff
cb55c1a3af
Changing configuration structure to enable multiple accounts.
This change enables using multiple wire plugins at the same time.
Also, we now distinguish between the wire plugin (i.e. EBICS or
taler_bank) and the wire method (i.e. SEPA or x-taler-bank) that
the wire plugin is implementing.  The "taler-bank" wire method
was renamed from "test" to "x-taler-bank".

This also changes the format of the /wire response of the exchange,
as we now need to return multiple accounts.  Note that wire fees
are specified per wire method, not per wire account.

taler-exchange-keyup now automatically signs all of the /wire
responses in the location specified by the configuration.

Account identification in wire plugins was changed to use
payto://-URLs instead of method-specific JSON fields.  Signing
and validation of /wire responses was moved from each wire
plugin to a generic validation method in libtalerutil (crypto)
or libtalerjson (for JSON-formatted inputs).
Convenience methods were added to generate JSON for wire accounts
(salting, signing).

Various section and option names were adjusted to streamline the
configuration and make it more consistent overall.  Documentation
was updated as well.
2018-04-02 14:29:44 +02:00
Christian Grothoff
a166ca7fec
fix #5281 for exchange: do preflight check that an old transaction is no longer running by accident 2018-03-12 11:33:10 +01:00
Florian Dold
6f9354cac6
better error message 2018-01-30 02:33:47 +01:00
Christian Grothoff
0906696ec2
bugfixes in auditor and rendering 2018-01-04 10:38:16 +01:00
Christian Grothoff
7d60d3a618
nicer formatting, some DCE 2018-01-04 09:22:33 +01:00
Christian Grothoff
5587732f52
fix auditor to properly verify wire fee signatures and more gracefully handle arithmetic amount issue 2018-01-04 00:41:19 +01:00
Christian Grothoff
76769e9429
fix test for '*' accepted encoding 2017-12-10 00:18:48 +01:00
Christian Grothoff
af6e9f134a
fix potential NPE 2017-12-09 23:51:49 +01:00
Christian Grothoff
1d40d2973c
initialize rev_rowid always 2017-12-09 23:35:04 +01:00
Christian Grothoff
042616899f
largely fix #5077 2017-12-06 19:24:00 +01:00
Christian Grothoff
499247a480
fixing #5178 2017-11-29 20:23:08 +01:00
Christian Grothoff
111abd5944
do not break on issues we log to JSON 2017-11-20 21:56:06 +01:00
Christian Grothoff
7749a683ba
fix issue in wire auditor's history processing 2017-11-20 21:55:24 +01:00
Christian Grothoff
11269125fa
implement #5177 (not yet tested) 2017-11-20 14:20:09 +01:00
Christian Grothoff
8f48db8fdf
implementing #4961: detection of missing aggregate transfers 2017-11-19 22:36:58 +01:00