Commit Graph

270 Commits

Author SHA1 Message Date
Florian Dold
eb55997084
re-format code 2019-08-25 16:18:24 +02:00
Florian Dold
a199215b98
add missing line continuation 2019-08-25 15:20:11 +02:00
Christian Grothoff
cbcfc56e5a
regenerate DB with new auditor db structure 2019-08-24 22:56:00 +02:00
Christian Grothoff
33217d730f
integrate bank when generating auditor test database 2019-08-23 14:22:23 +02:00
Christian Grothoff
6e6d6013be
fix test-auditor.sh check for no emergencies 2019-08-23 13:26:51 +02:00
Christian Grothoff
1b27509242
also dump mpub 2019-08-22 15:02:33 +02:00
Christian Grothoff
cd705a4df2
logic to create database for auditor test 2019-08-22 14:26:32 +02:00
Christian Grothoff
bad3e3dc4a
fix benchmark FTBFS 2019-07-24 14:13:02 +02:00
Marcello Stanisci
00817ba528
fix FTBFS 2019-06-30 20:50:05 +02:00
Christian Grothoff
e9f43adb5b
use proper default configuration 2019-06-30 17:44:58 +02:00
Christian Grothoff
4f846eab96
fix #5756, also change sepa->iban as per payto:// spec 2019-06-08 19:55:18 +02:00
Christian Grothoff
256910e28d
getchar() result is intentionally discarded, make this clear 2019-06-03 11:17:40 +02:00
Christian Grothoff
c241694ccb
check more return values 2019-06-03 10:44:57 +02:00
Florian Dold
5dd3c2191a
benchmark: don't print result as exchange worker 2019-05-02 23:45:31 +02:00
Florian Dold
feec6e30e6
benchmark: terminate exchange slave properly 2019-05-01 20:52:43 +02:00
Florian Dold
88f9e693f6
benchmar: wait for exchange worker to terminate 2019-05-01 19:44:00 +02:00
Florian Dold
8e391e8bfb
Don't free null strings.
When running in client-only mode, this string will never be allocated,
but the code tried to free it ...
2019-05-01 04:00:29 +02:00
Christian Grothoff
81e8b65836
fix swapped arguments, and add const where required, do not free const ptr 2019-03-16 02:28:42 +01:00
Marcello Stanisci
bdd8d67be3
Swapping parameters 2019-03-13 17:53:38 +01:00
Marcello Stanisci
6ee5346b20
fix double-free 2019-03-13 17:15:57 +01:00
Christian Grothoff
bb38ff98d1
stop wirewatch if launching exchange fails 2019-03-13 04:16:22 +01:00
Christian Grothoff
ae4b240ec2
return proper error message instead of aborting, fix a few minor memory leaks in taler-exchange-benchmark 2019-03-13 04:11:35 +01:00
Christian Grothoff
54fc83ee6b
fix cyclic dependency by combining exchange-lib and auditor-lib directories 2019-01-11 21:43:15 +01:00
Marcello Stanisci
93ff2d93cc
/withdraw: #5284. 2018-12-18 17:35:23 +01:00
Marcello Stanisci
2fc84dd07f
/refresh/*: #5284. 2018-12-18 16:27:50 +01:00
Marcello Stanisci
c38f521dd8
/deposit: #5284. 2018-12-18 16:09:17 +01:00
Christian Grothoff
277f90bf2b
preparing test logic for new auditor requirements (incomplete) 2018-11-10 19:28:28 +01:00
Florian Dold
34f12d3f06
benchmark: variable 'refresh rate' 2018-10-02 21:08:59 +02:00
Florian Dold
b7bbc4cc70
print CPU time for benchmark descendant processes 2018-10-02 17:26:42 +02:00
Florian Dold
ca80a4f1c8
result must be signed 2018-09-21 17:36:19 +02:00
Florian Dold
ff96695e47
benchmark: don't crash on --help 2018-09-21 15:15:30 +02:00
Florian Dold
9316f63b7f
exchange benchmark: add option to linger around after we're done 2018-08-23 22:47:50 +02:00
Florian Dold
aa360e0ccd
remove automatically generated file that always changes 2018-08-23 22:47:19 +02:00
Christian Grothoff
efd65a63ac
fix preflight check failure 2018-08-19 18:40:13 +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
Christian Grothoff
0df2028f96
make transactions smaller to try to reduce rollbacks 2018-08-19 16:01:57 +02:00
Christian Grothoff
ddca1f5c68
add logic to allow fakebank transfers to be retried 2018-08-19 14:19:17 +02:00
Christian Grothoff
7663baf2e2
retry instantly if /keys download fails during testcase startup 2018-08-19 13:27:21 +02:00
Florian Dold
2d7e9bc5aa
increase client limit 2018-08-19 13:08:05 +02:00
Christian Grothoff
433fab96c9
add logic to retry /keys if /keys download fails 2018-08-19 12:12:00 +02:00
Florian Dold
ec08232b3f
increase listen backlog for fakebank 2018-08-19 11:37:42 +02:00
Florian Dold
7ba7a46f24
benchmark: remove odd macro 2018-08-19 01:13:17 +02:00
Florian Dold
96e047b186
add remote benchmarking 2018-08-19 00:49:16 +02:00
Christian Grothoff
f0a796a3f6
make curl check saner, use AS_IF 2018-08-16 14:22:01 +02:00
Christian Grothoff
a1f289512e
make wirewatch batch size adaptive to transaction success/failure 2018-08-11 11:29:45 +02:00
Christian Grothoff
96c2fb8e10
implement retries for a few more commands 2018-08-11 11:29:02 +02:00
Christian Grothoff
30191a8ae5
be aggressive 2018-08-11 06:31:43 +02:00
Christian Grothoff
2637c1b682
add multi-reserve support, improve load balancing by not reusing connections in benchmark 2018-08-11 02:48:49 +02:00
Christian Grothoff
e0585f2dac
resign account-2 2018-08-10 22:32:44 +02:00
Christian Grothoff
1314b5fe20
use timeout option in benchmark 2018-08-10 22:31:46 +02:00
Christian Grothoff
e0935af764
add a few more FOR UPDATE where appropriate 2018-08-10 19:12:57 +02:00
Christian Grothoff
9887077ea2
launch wirewatch in the background for benchmarking 2018-08-10 18:48:45 +02:00
Christian Grothoff
e17121fd1c
use retry in benchmark 2018-08-10 18:48:44 +02:00
Christian Grothoff
db65bc69bf
fix bug wrt signature handling during withdraw (with/without optimistic signing) 2018-08-10 18:37:25 +02:00
Christian Grothoff
04055de75a
spaceing 2018-08-09 22:30:45 +02:00
Christian Grothoff
9384234555
use correct HTTP status code for commit failures 2018-08-09 21:15:27 +02:00
Christian Grothoff
c51b19512b
report ore precisely where commands went wrong 2018-08-09 21:10:56 +02:00
Christian Grothoff
e3f7083b3e
fix KS state freeing on exit 2018-08-09 20:51:42 +02:00
Christian Grothoff
d9474aab0f
fix benchmark tool output and time measurement 2018-08-09 20:25:30 +02:00
Christian Grothoff
a05859ad13
use only one fakebank instance in multi-process benchmark 2018-08-09 19:47:23 +02:00
Christian Grothoff
f17ad4de76
in parallel tests, only launch one exchange -- still broken: code attempts to launch multiple fakebanks 2018-08-09 10:33:21 +02:00
Christian Grothoff
4693708b8c
use fprintf / stdout for final benchmark result 2018-08-09 10:15:04 +02:00
Christian Grothoff
3197125dbe
first quick hack for parallelizing benchmark 2018-08-07 22:10:38 +02:00
Christian Grothoff
46047a6c14
fix build 2018-08-06 15:18:29 +02:00
Marcello Stanisci
5c18695bc0
Remove unnecessary code. 2018-07-27 16:18:51 +02:00
Marcello Stanisci
dddf7f52a5
Salt and sig not to be kept on tracking. 2018-07-27 14:53:45 +02:00
Marcello Stanisci
d9738553b2
Benchmark,
extract bank url from the configuration; then
make example config usable.
2018-07-27 14:47:02 +02:00
Marcello Stanisci
1c541596d6
Add make target to clean blobs from the benchmark. 2018-07-27 12:12:13 +02:00
Marcello Stanisci
e850dc09c4
Make benchmark config file working. 2018-07-27 11:58:54 +02:00
Marcello Stanisci
880ce0bdb3
Remove old note. 2018-07-25 16:19:45 +02:00
Marcello Stanisci
6eaa415f90
Benchmark.
Building the /wire response object inside the tool.
2018-07-25 16:18:49 +02:00
Marcello Stanisci
953a2bd382
Add benchmark example config file. 2018-07-25 15:43:27 +02:00
Marcello Stanisci
3af3a9fdc3
Give default loglev at benchmark. 2018-07-25 13:36:33 +02:00
Marcello Stanisci
de925a3556
Benchmark.
Removing "-new" part from the source file.
2018-07-25 13:26:47 +02:00
Marcello Stanisci
9f8b6a6b5d
Prefer strncpy() 2018-07-25 13:08:18 +02:00
Marcello Stanisci
2393e26b02
Use proper exchange preparator (benchmark) 2018-07-25 12:36:38 +02:00
Marcello Stanisci
7a1d4e4d65
no ApiKey for benchmark 2018-07-25 12:05:55 +02:00
Marcello Stanisci
d7789d0984
Fix segfault. 2018-07-25 12:03:26 +02:00
Marcello Stanisci
7aee3ddc95
Benchmark uses fakebank now. 2018-07-25 11:57:15 +02:00
Marcello Stanisci
207c975902
Benchmark.
Measuring time and print outcome.
2018-07-25 11:45:14 +02:00
Marcello Stanisci
2952c84fdf
Benchmark.
Fix default runs' number and payto construction.
2018-07-25 10:54:48 +02:00
Marcello Stanisci
9460206749
Benchmark.
Batching all the commands together.
2018-07-25 10:40:38 +02:00
Marcello Stanisci
5f0b98a298
Benchmark.
Define the "unity" benchmark: a array of CMDs containing
at least a withdraw+deposit, and _possibly_ a refresh operation.
2018-07-25 10:23:40 +02:00
Marcello Stanisci
64cb473ff4
Benchmark.
Calculating total amount for the (unique) reserve.
2018-07-25 09:31:18 +02:00
Marcello Stanisci
92dc0c285a
Benchmark.
Iterations are counted "per coin".  Basically,
the user expresses how many coins they want to
instantiate for a single invocation of the command.
2018-07-24 18:23:39 +02:00
Marcello Stanisci
a6a28024db
Benchmark.
Making imported benchmark a stub ; and getting it to compile.
2018-07-24 18:17:34 +02:00
Marcello Stanisci
3ed6d650a6
Fix benchmark.
Importing the _merchant_ benchmark source file here and
including it into the compilation system.
2018-07-24 16:02:22 +02:00
Christian Grothoff
52fa78b448
lookahead/duration options are in [exchange], not [exchange_keys], use consistently 2018-07-04 00:43:24 +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
Florian Dold
e318edb5e5
use url instead of uri consistently 2018-01-30 01:38:04 +01:00
Christian Grothoff
2152a6936e
eliminate use of exchange's /admin/add/incoming with fakebank in taler-exchange-benchmark 2017-12-10 19:00:19 +01:00
Christian Grothoff
499247a480
fixing #5178 2017-11-29 20:23:08 +01:00
Christian Grothoff
2f2930f1ba
major API refactoring, adding planchet generation and coin extraction APIs to the Taler crypto library, thereby simplifying code in withdraw, refresh, tipping, payback and testcases; slight API incompatibilities to previous versions are introduced 2017-10-31 14:02:54 +01:00
Christian Grothoff
e4fe0dc87e
exit more nicely if command line arguments were wrong 2017-10-17 19:53:43 +02:00
Christian Grothoff
837fcd515c
use proper return value, some c99 changes 2017-10-06 22:13:28 +02:00
Christian Grothoff
2f715c27f8
check return value from TALER_JSON_hash 2017-10-06 20:02:28 +02:00
Christian Grothoff
d77c4160ec
implement logic to check protocol version compatibility (#5035) 2017-07-01 14:15:26 +02:00
Florian Dold
85350ced32
rename proposal_data to contract_terms (see #4879) 2017-05-29 01:15:41 +02:00
Christian Grothoff
57964b6ae9
fix indentation 2017-05-04 20:19:57 +02:00
Christian Grothoff
f4df63e448
adding support for transaction history to wire plugin API (#4959) 2017-05-04 18:35:53 +02:00
Christian Grothoff
487237381d
fix misc doxygen issues 2017-04-20 07:49:56 +02:00
Christian Grothoff
8d9dc14227
renaming GNUNET_GETOPT-symbols to match latest changes in GNUnet 2017-03-25 23:39:30 +01:00
Christian Grothoff
ae3e850c94
update getopt config parsing style to match 'getopt' GNUnet branch API change 2017-03-15 12:01:06 +01:00
Christian Grothoff
4d2faa5ec9
changing wire plugin specification from [exchange]WIREFORMAT to [exchange-wire-PLUGIN]enable=YES/NO 2017-03-03 19:24:08 +01:00
Florian Dold
92246c3e88
remove transaction_id, only one payment per proposal allowed 2017-02-07 15:09:10 +01:00
Florian Dold
8c820b6916
contract terminology renaming (#4877) 2017-02-06 15:43:06 +01:00
Christian Grothoff
f032706fef
fixing taler-benchmark build issues introduced by recent API changes 2016-10-20 21:20:31 +02:00
Christian Grothoff
265fc74b65 check return values, fix use of uninit memory on certain error handling paths 2016-09-23 16:52:13 +02:00
Marcello Stanisci
59c6856284 fixing #4594 2016-07-07 17:55:25 +02:00
Christian Grothoff
9035b9d324 -distfix 2016-06-20 17:45:02 +02:00
Marcello Stanisci
17c8741e20 typo 2016-06-16 11:22:07 +02:00
Marcello Stanisci
c22a25c22b typo 2016-06-16 00:22:20 +02:00
Christian Grothoff
8c7406cb42 check refresh amounts add up correctly, fix linker issue 2016-06-15 22:55:05 +02:00
Christian Grothoff
c38a7c5518 more sanity checks, better clean up 2016-06-15 22:55:05 +02:00
Christian Grothoff
754c4ef24c nicer reports
-fix leak

-fix leaks
2016-06-15 22:55:02 +02:00
Christian Grothoff
0c3f6dde25 add support to collect basic metrics and to terminate automatically 2016-06-15 22:55:02 +02:00
Christian Grothoff
c2bb85ffdd first working version of benchmark logic 2016-06-15 22:55:01 +02:00
Christian Grothoff
f59246e763 clean up blobs
clean up blobs

clean up blobs

clean up blobs

pass -c option to taler services, ship with reasonable config

exclude live-keys from config
2016-06-15 22:54:58 +02:00
Christian Grothoff
3876b70eb4 merge refresh closure into struct Coin 2016-06-15 16:42:43 +02:00
Christian Grothoff
e4b9a151a6 restructure benchmark logic so that we can schedule each operation independently 2016-06-15 16:36:17 +02:00
Christian Grothoff
b31c62039d avoid passing int's as void*'s in benchmark logic 2016-06-15 16:04:29 +02:00
Christian Grothoff
7588f08238 make exchange URI a command-line option 2016-06-15 15:41:17 +02:00
Christian Grothoff
c32cc081ee misc minor stylistic fixes to benchmark tool: 2016-06-15 15:09:57 +02:00
Marcello Stanisci
7b9272d3e8 left=0 after successful reveal 2016-06-14 15:58:25 +02:00
Marcello Stanisci
1a7619d54e comments 2016-06-14 15:53:48 +02:00
Marcello Stanisci
a34a2873ca reconstructing array of denominations for coins gotten
by melting dynamically; as reported in msg (0010890) of
#4576'
2016-06-14 15:51:58 +02:00
Marcello Stanisci
18c22e3e2e fixing corrupted DLL (resulting from double call to json_decref()) 2016-06-13 23:40:00 +02:00
Christian Grothoff
62b7bbabed Merge branch 'master' of git+ssh://git.taler.net/var/git/exchange 2016-06-13 16:36:13 +02:00
Christian Grothoff
6cd71bebbf implement #4569 2016-06-13 16:36:10 +02:00
Marcello Stanisci
738d0d008e adding re-withdrawing of spent and non-refreshed coins 2016-06-13 15:42:08 +02:00
Marcello Stanisci
4f4bad310b placing refreshed coins where all coins are 2016-06-11 18:01:57 +02:00
Marcello Stanisci
6bd7d2fc85 defining struct for refreshed coins 2016-06-11 17:35:15 +02:00
Marcello Stanisci
3d9e2b89be addressing #4572 2016-06-11 16:31:33 +02:00
Marcello Stanisci
afb10e1d9e fixing segfault (due to a double free) 2016-06-11 16:11:00 +02:00
Marcello Stanisci
809cf5d604 polishing comments 2016-06-11 16:07:33 +02:00
Marcello Stanisci
d7f38a845a addressing compiler warnings 2016-06-11 14:33:52 +02:00
Marcello Stanisci
dd7687a5f7 fixing segfault 2016-06-10 22:35:38 +02:00
Marcello Stanisci
1db423907e fixing melting according to the refresh_probability=1 used in debugging circumstances' 2016-06-10 16:27:31 +02:00
Christian Grothoff
0f85142d27 -do not ignore error code... 2016-06-10 16:07:51 +02:00
Christian Grothoff
96b6bca54d -do not ignore error code... 2016-06-10 16:06:27 +02:00
Marcello Stanisci
8c13b6242b first steps in refresh reveal in benchmark 2016-06-10 16:04:03 +02:00
Marcello Stanisci
2da3c046b2 melting logic (still no reveal) in benchmark 2016-06-10 15:22:32 +02:00
Marcello Stanisci
dafde95d85 addressing compilation warnings 2016-06-10 13:52:40 +02:00
Marcello Stanisci
621a8172a1 preparing refresh blob 2016-06-10 01:04:09 +02:00
Marcello Stanisci
fc07c4c159 - picking needed JSONs from files instead of hardcoding
- populating (by hand) the array of denominations needed for refreshing
- minor fixes
2016-06-09 23:35:05 +02:00
Marcello Stanisci
d450303890 removing decref from wring place 2016-06-09 17:22:15 +02:00
Marcello Stanisci
f50d4b0f35 json_decref in shutdown 2016-06-08 17:34:46 +02:00
Marcello Stanisci
feb60291b6 getting banking details through config file in benchmark 2016-06-08 17:11:33 +02:00
Marcello Stanisci
46c593f93e - calling exchange via GNUNET_OS_ interface
- getting currency via /keys
- adding -c option
(benchmark)
2016-06-08 16:12:31 +02:00
Marcello Stanisci
7714356611 first steps in refreshing in benchmark 2016-06-07 17:41:16 +02:00