Christian Grothoff
50749c462b
make libfakebank scale
2021-06-19 08:36:17 +02:00
Christian Grothoff
036e711779
extend fakebank API to have thread pool option
2021-06-19 05:00:45 +02:00
Christian Grothoff
4741f4ea02
implement duplicate reserve_pub detection in fakebank, add test (fails in pybank), for #6863
2021-05-20 12:31:27 +02:00
Christian Grothoff
9473ef4d86
fix remaining #6679 issues in exchange
2021-01-07 20:52:11 +01:00
Christian Grothoff
0bffea1f67
add missing linker options
2020-12-31 22:13:12 +01:00
Christian Grothoff
86dd5d46dd
set correct options for fakebank, we have been lucky that this didn't show up badly in tests
2020-12-02 20:27:42 +01:00
Christian Grothoff
8d312562bf
adjust ECs
2020-11-07 18:51:54 +01:00
Christian Grothoff
5224f79591
fix checks
2020-08-29 01:24:21 +02:00
Christian Grothoff
0846ab93bc
doxygen fixes
2020-08-29 00:37:37 +02:00
Christian Grothoff
4bba726356
nicer generic error reporting logic, for #6432
2020-08-25 15:11:56 +02:00
MS
799822220e
rename tool
2020-07-29 16:07:57 +02:00
MS
67ee9a9ec0
adjust help message
2020-07-29 15:55:04 +02:00
MS
7a9086fa18
dereference pointer
2020-07-27 23:07:05 +02:00
MS
2e8d4e802b
Drop payto params before preparing the wire transfer.
2020-07-27 22:25:05 +02:00
Christian Grothoff
022fba51d5
better fix
2020-07-27 14:14:40 +02:00
Christian Grothoff
ccdbc2a452
better fix
2020-07-27 14:14:04 +02:00
MS
6fd44ff2ea
fix segfault
2020-07-27 14:03:11 +02:00
MS
680b671b29
Extend bank transfer tool.
...
Find subject among payto parameters.
2020-07-27 12:57:47 +02:00
Christian Grothoff
54e63f01df
fix #6408 : make sure all timestamps are always rounded when they arrive over JSON, or 400 the requester; similarly don't tolerate anything else as client
2020-07-05 21:54:11 +02:00
Christian Grothoff
e428783e2e
GNUNET_free_non_null is gone, use GNUNET_free
2020-07-05 16:56:41 +02:00
Christian Grothoff
c167fd8f8f
fix #6192
2020-04-21 13:53:15 +02:00
Christian Grothoff
dccb300b76
enforce proper URL limit ( #6172 )
2020-04-09 15:49:38 +02:00
Christian Grothoff
543fe4ae36
make code compiler without warnings with latest libmicrohttpd API
2020-04-09 00:59:55 +02:00
Christian Grothoff
3404fda463
typos
2020-03-31 20:57:11 +02:00
Christian Grothoff
82b18857e2
do return correct timestamp also in fakebank implementation
2020-03-28 20:46:23 +01:00
Christian Grothoff
e8c8efe5ec
more stringent overflow checks
2020-03-27 13:32:16 +01:00
Christian Grothoff
88fd81e5da
completing auditor split
2020-03-21 16:09:22 +01:00
Christian Grothoff
2021f75995
fix logic to ensure that we do not call the callback after the iteration was aborted (caused big trouble in wirewatcher)
2020-03-20 12:34:26 +01:00
Christian Grothoff
4322bbf2f1
move common logic to parse currency into libtalerutil
2020-03-15 20:08:38 +01:00
Christian Grothoff
20a7d8fc08
merge taler-wire and taler-bank-transfer tools, they are very related and otherwise duplicate lots of logic; also enable both credit and debit histories to be shown
2020-03-07 12:23:32 +01:00
Christian Grothoff
ffcadbff8c
code cleanup (comments, scoping, naming, indentation)
2020-03-07 00:28:07 +01:00
Christian Grothoff
a3013d9e3d
minor cleanup
2020-03-03 19:10:40 +01:00
Christian Grothoff
0d30e53585
remove dead field, avoid unnecessary heap allocation
2020-03-03 19:06:11 +01:00
Christian Grothoff
a9b3c564bd
rename BANK_excecute_wire_transfer to BANK_transfer, improve error handling when curl_easy_init() fails
2020-03-03 17:14:00 +01:00
Christian Grothoff
97fb6b0091
fixing memory leak, comments, renaming callback type to make it more concise
2020-03-03 16:35:20 +01:00
Christian Grothoff
9abee82d3c
remove dead prototype
2020-03-03 16:08:26 +01:00
Christian Grothoff
ac5635776e
remove /config from API, as that is not part of the wire gateway specification
2020-03-03 15:44:11 +01:00
Christian Grothoff
3ba839dee5
remove /config from API, as that is not part of the wire gateway specification
2020-03-03 15:40:51 +01:00
Christian Grothoff
1448f97b51
keep the const though, that was an improvement
2020-02-11 23:02:22 +01:00
Christian Grothoff
357dbc0235
revert bank API change, we will not do this here after all
2020-02-11 23:01:49 +01:00
Christian Grothoff
c25b805f62
first draft implementation of new bank account balance in history logic (untested)
2020-02-11 16:01:45 +01:00
Christian Grothoff
3ad698d018
merging
2020-02-11 15:40:37 +01:00
Christian Grothoff
de0d987e34
start with new history API implementation
2020-02-11 15:39:39 +01:00
Christian Grothoff
42bc31744b
implement /config in fakebank and taler_bank_lib.h ( #6066 )
2020-02-04 21:59:43 +01:00
Christian Grothoff
282e4f59ee
address bank_api_credit comment/FIXME from Florian, also adapt debit logic accordingly
2020-01-26 17:48:13 +01:00
Florian Dold
0fe82acc1b
better naming, comments and more logging for incoming history
2020-01-22 13:53:11 +01:00
Florian Dold
975d9c9d15
make sure request_uid is actually unique
...
Allowing duplicate request_uid for different transfer details means that
somebody might eventually rely on this, which is bad. They should
really be unique, it makes tracing easier.
2020-01-21 16:13:22 +01:00
Christian Grothoff
d22a52cc7a
fix copyright headers as per CA
2020-01-19 19:21:58 +01:00
Florian Dold
fc8bdb9b97
consistently use payto URI instead of URL
2020-01-19 17:03:19 +01:00
Christian Grothoff
6e17a847e8
fix FTBFS
2020-01-18 23:28:35 +01:00
Christian Grothoff
889644c686
fix FTBFS
2020-01-18 23:28:01 +01:00
Christian Grothoff
6fc2a5f949
fixes
2020-01-18 20:50:25 +01:00
Christian Grothoff
73ee593b76
make static analysis happy
2020-01-18 19:21:59 +01:00
Florian Dold
d4abdb7a28
add break_op assertion
2020-01-18 17:08:23 +01:00
Florian Dold
48aab68ff5
minor log improvement
2020-01-18 16:53:22 +01:00
Christian Grothoff
c87722791d
doxygen
2020-01-18 14:36:49 +01:00
Florian Dold
4993863c4c
allow skipping of denom fees check
2020-01-18 13:52:19 +01:00
Christian Grothoff
dac255329f
doxygen
2020-01-18 13:23:17 +01:00
Christian Grothoff
5abe350a05
doxygen
2020-01-18 12:34:17 +01:00
Florian Dold
8e0180b257
remove more redundant args
2020-01-18 04:39:52 +01:00
Florian Dold
5d19229561
dce: redundant args
2020-01-18 04:31:55 +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
b322614eb2
doxygen
2020-01-17 23:01:17 +01:00
Christian Grothoff
985db277f1
doxygen fixes
2020-01-17 22:13:40 +01:00
Florian Dold
734fd8cc7d
test_bank_api_with_fakebank passes again
2020-01-17 03:13:58 +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
0305cf5f9e
move function to libtalerexchangedb, as planned
2020-01-16 22:40:12 +01:00
Christian Grothoff
a9ae2171b8
reuse TALER_url_join
2020-01-16 21:57:40 +01:00
Christian Grothoff
3d9ad86dfb
remove duplicated, wrong ec logic in bank-lib
2020-01-16 21:02:18 +01:00
Florian Dold
1032cdea0f
fix config error message
2020-01-16 20:53:54 +01:00
Marcello Stanisci
1e26fc824c
Finishing CMD to insert denomination and deposit into database.
2020-01-16 18:38:04 +01:00
Florian Dold
23507d8565
HTTP_NOT_ACCEPTABLE is not an expected status code, as it is for content type negotiation
2020-01-16 16:40:12 +01:00
Christian Grothoff
14ab704cde
fix fakebank logic
2020-01-16 15:06:16 +01:00
Christian Grothoff
d7ccfad610
fix history API
2020-01-16 14:30:10 +01:00
Florian Dold
7fad7cb716
make lib(c|gn)url mandatory, cleaner makefiles
2020-01-16 14:12:47 +01:00
Marcello Stanisci
90e1572039
Adapting wirewatch tests to new style.
2020-01-16 00:12:25 +01:00
Christian Grothoff
9ded20518c
debug logging
2020-01-15 15:27:21 +01:00
Christian Grothoff
e83015c8a3
fix payto URI conversion
2020-01-15 15:20:55 +01:00
Christian Grothoff
4547bfb318
fix fakebank account vs. full payto confusion
2020-01-15 11:48:49 +01:00
Christian Grothoff
3fa213e41e
fix test issues
2020-01-15 11:14:11 +01:00
Christian Grothoff
087de13e0a
use new parsing API, fixes issues
2020-01-15 00:15:40 +01:00
Christian Grothoff
2edee5ac4a
refactor uri parsing logic, prepare for unit test
2020-01-14 15:57:36 +01:00
Christian Grothoff
5f6d867469
add request UID repetition detection to fakebank
2020-01-13 22:27:57 +01:00
Christian Grothoff
07b799b21f
merge
2020-01-13 22:15:43 +01:00
Christian Grothoff
7b1909bc99
make fakebank and banklib match specifified new API
2020-01-13 22:01:45 +01:00
Christian Grothoff
4d6ef1da29
eliminate libtalerwire
2020-01-13 18:16:01 +01:00
Christian Grothoff
5b78b3ea86
fix build issues
2020-01-12 22:59:03 +01:00
Christian Grothoff
1788ca2be1
reorganization of file structure
2020-01-12 20:44:33 +01:00
Christian Grothoff
6a4cc07978
fix ftbfs
2020-01-12 18:14:16 +01:00
Christian Grothoff
c7610bf617
fix fakebank API
2020-01-12 18:09:41 +01:00
Christian Grothoff
c6ba84462d
dead
2020-01-12 17:58:17 +01:00
Christian Grothoff
00740610ba
fix bank-lib ftbfs
2020-01-12 17:43:20 +01:00
Christian Grothoff
9b586cd5f0
fix ftbfs
2020-01-12 01:03:08 +01:00
Christian Grothoff
85c4aa733c
add separate transfer and admin/add/incoming commands, force
2020-01-12 00:43:24 +01:00
Christian Grothoff
cbcc3727de
add separate transfer and admin/add/incoming commands
2020-01-12 00:39:27 +01:00
Christian Grothoff
2ee33e3cbc
remove exchange-url argument from /admin/add/incoming
2020-01-11 23:06:24 +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
Marcello Stanisci
554da10133
Fix bank test.
...
Getting wget to tolerate the 302 returned
by the bank as a response to "GET /".
2020-01-09 16:20:28 +01:00
Christian Grothoff
2fdc21f7d7
add missing configuration files to dist, eliminate warning on CONFLICT status code in test
2019-12-24 23:09:06 +01:00
Christian Grothoff
8d51dd18ed
do NOT reset DB in taler-bank-manage-testing, not healthy for auditor test
2019-12-23 12:32:37 +01:00
Christian Grothoff
e0cf954ad9
make exchange test suite work with current bank
2019-12-23 11:47:16 +01:00
Marcello Stanisci
d36700ed98
Fix auditordb.
...
Include (forgotten) table within the "drop_tables()" command.
2019-12-22 12:43:33 +01:00
Christian Grothoff
8af89ff197
misc release preparations: mostly fixing 'make dist' target
2019-12-20 20:10:46 +01:00
Christian Grothoff
36e15a501f
purge history-range API, no longer needed ( #5993 )
2019-12-15 18:16:33 +01:00
Christian Grothoff
745a48ef7c
fix double free in test
2019-12-15 13:11:38 +01:00
Christian Grothoff
1fc603800c
new is the new old: remove _new from tests
2019-12-14 23:19:51 +01:00
Christian Grothoff
cf31e54a2f
remove obsolete old tests ( #5758 )
2019-12-14 23:17:56 +01:00
Christian Grothoff
05a992445e
fix comments
2019-12-14 23:14:59 +01:00
Christian Grothoff
385b3e77df
tighten formatting rules
2019-10-31 12:59:50 +01:00
Christian Grothoff
2696688aa3
fix compiler warnings
2019-10-29 20:57:18 +01:00
Christian Grothoff
94f0d80cc1
turn teah_common.c into libtalercurl, fixes many ugly issues in build system
2019-10-26 20:05:19 +02:00
Christian Grothoff
8d11ac3388
alphabetical, please
2019-10-23 15:28:12 +02:00
Christian Grothoff
bda228232f
handle 406 nicely, can happen if insufficient balance
2019-10-06 12:31:11 +02:00
Christian Grothoff
b46fe9aa21
reindenting with uncrustify
2019-10-05 15:42:08 +02:00
Marcello Stanisci
303e92ca40
Less granularity for bank error codes ( #5787 ).
2019-09-29 14:17:25 +02:00
Christian Grothoff
ff0a206f9d
use single line
2019-09-15 13:13:29 +02:00
Christian Grothoff
fc19601efc
fix memory leaks in test case
2019-09-15 10:27:39 +02:00
Marcello Stanisci
e362c786b3
rename test
2019-09-11 00:46:34 +02:00
Marcello Stanisci
0889cedc59
purge old _new bank-lib test
2019-09-11 00:46:34 +02:00
Marcello Stanisci
4e27be9b6c
Unify "twisted" tests.
2019-09-11 00:46:34 +02:00
Marcello Stanisci
ef98a68ffa
fix bank-lib test.
2019-09-11 00:46:30 +02:00
Marcello Stanisci
6aa8adede0
fix makefile
2019-09-09 23:47:00 +02:00
Marcello Stanisci
e6dc2ce6c6
one source two binaries for testing.
2019-09-09 23:47:00 +02:00
Marcello Stanisci
447d1d78ad
Importing the "has_in_name" logic from MHD.
2019-09-09 23:47:00 +02:00
Marcello Stanisci
cb6aab590b
Provide method to launch Fakebank withOUT running tests.
2019-09-09 23:46:59 +02:00
Christian Grothoff
5fa4a0e7e1
fix warnings
2019-09-05 11:23:24 +02:00
Marcello Stanisci
1fc9595b2c
Calling bank legacy API in a test
2019-09-04 15:01:31 +02:00
Florian Dold
eb55997084
re-format code
2019-08-25 16:18:24 +02:00
Christian Grothoff
89bb407b4c
ign
2019-08-23 15:57:45 +02:00
Christian Grothoff
1a537490eb
fix test case clean up logic on skip
2019-07-22 11:42:19 +02:00
Christian Grothoff
21edd1e903
rename _new.c to just .c for tests
2019-06-08 21:41:12 +02:00
Marcello Stanisci
8800110b72
update twister conf
2019-06-07 14:52:00 +02:00
Christian Grothoff
96ccde10c8
initialize timestamp to obviously bogus value if /admin/add/incoming failed
2019-06-03 11:30:39 +02:00
Christian Grothoff
1ec2cb59b4
.argument field was never used, simplify logic
2019-06-03 11:27:03 +02:00
Christian Grothoff
01e8e930dc
add guard logic to check sizeof(value) is sufficient (should be -- size is 20, needed are 5, but still the new code is strictly safer even if slower)
2019-06-03 11:20:47 +02:00
Christian Grothoff
c241694ccb
check more return values
2019-06-03 10:44:57 +02:00
Christian Grothoff
7d142ad261
do not cut out &start= post-hum, just build the string right the first time
2019-06-03 00:26:53 +02:00
Christian Grothoff
f725593155
eliminate useless global variable TFH_handle_history_range_step
2019-06-03 00:25:11 +02:00
Marcello Stanisci
6096c1387c
teah_common.h -> taler_curl_lib.h
2019-05-24 16:49:25 +02:00
Marcello Stanisci
67dd3171d0
using legal lib names
2019-05-23 20:46:51 +02:00
Marcello Stanisci
5f6d706422
Export compressing routine.
2019-05-23 20:29:50 +02:00
Marcello Stanisci
95933156a6
Fix compression.
...
The "Content-Encoding: deflate" header is now added from
within the compression routine itself, and _not_ from the
"exchange handle".
This fixed the bank-lib functions as those do not use any
exchange handle, and therefore were wrongly sending compressed
bodies without adding the mentioned HTTP header.
2019-05-16 16:58:09 +02:00
Marcello Stanisci
e6c1d262a8
Never set HTTP headers before invoking libgnunetcurl.
2019-05-13 17:39:06 +02:00
Florian Dold
8868952735
bank-lib: fix context
2019-05-12 22:20:36 +02:00
Florian Dold
7fa67030a8
hack in bank-lib compression
2019-05-12 21:59:59 +02:00
Christian Grothoff
9c194f79a5
adapt to GNUnet API change
2019-05-02 22:25:47 +02:00
Christian Grothoff
9c515d218b
use uint64_t for serial_id
2019-04-22 21:35:19 +02:00
Marcello Stanisci
4c9c7482f9
Install taler-bank-transfer again. Needed by reserve topper.
2019-04-19 19:08:25 +02:00