Commit Graph

1324 Commits

Author SHA1 Message Date
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
0e9651210d Merge branch 'master' of ssh://taler.net/var/git/exchange 2016-06-14 13:10:10 +02:00
Christian Grothoff
389c18c18c add file for error codes 2016-06-14 09:50:59 +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
Christian Grothoff
2a58f470af -indentation 2016-06-11 20:42:21 +02:00
Christian Grothoff
c668eace47 -indentation, dox 2016-06-11 19:58:06 +02:00
Christian Grothoff
030b7716ae Merge branch 'master' of git+ssh://taler.net/var/git/exchange 2016-06-11 18:22:44 +02:00
Christian Grothoff
766fb6e282 fixing more leaks 2016-06-11 18:22:33 +02:00
Marcello Stanisci
23c6dba981 Merge branch 'master' of ssh://taler.net/var/git/exchange 2016-06-11 18:03:30 +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
Christian Grothoff
f4b013b3d4 fix leaks 2016-06-11 17:11:38 +02:00
Christian Grothoff
6fb30ce468 fix memory leaks 2016-06-11 16:59:03 +02:00
Christian Grothoff
63612f4976 Merge branch 'master' of git+ssh://taler.net/var/git/exchange 2016-06-11 16:47:25 +02:00
Christian Grothoff
2886187a02 fix leaks 2016-06-11 16:47:13 +02:00
Marcello Stanisci
44f2ac5194 Merge branch 'master' of ssh://taler.net/var/git/exchange 2016-06-11 16:31:44 +02:00
Marcello Stanisci
3d9e2b89be addressing #4572 2016-06-11 16:31:33 +02:00
Christian Grothoff
06622fbf8e Merge branch 'master' of git+ssh://taler.net/var/git/exchange 2016-06-11 16:17:03 +02:00
Christian Grothoff
ce5587b427 fix memory leaks: json_array_append increments RC 2016-06-11 16:16:49 +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
e52574e9b9 Merge branch 'master' of ssh://taler.net/var/git/exchange 2016-06-11 14:34:04 +02:00
Marcello Stanisci
d7f38a845a addressing compiler warnings 2016-06-11 14:33:52 +02:00
Christian Grothoff
7dc075ae28 check return values of json_array_append 2016-06-11 13:54:11 +02:00
Christian Grothoff
5d28c01900 fix intent 2016-06-11 00:36:41 +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
9f23e213cf Merge branch 'master' of ssh://taler.net/var/git/exchange 2016-06-09 23:35:35 +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
Christian Grothoff
42e2d51e53 note similarity in code 2016-06-09 21:59:24 +02:00
Christian Grothoff
3f4d668463 refactor track_transfer 200 handling, fix minor leak 2016-06-09 21:51:49 +02:00
Christian Grothoff
4a412841ba -typo 2016-06-09 21:44:42 +02:00
Christian Grothoff
e484438837 rename source files to match API URIs 2016-06-09 21:43:26 +02:00
Christian Grothoff
3672005350 rename source files to match API URIs 2016-06-09 21:43:10 +02:00
Christian Grothoff
bb511560fe move TALER_TrackTransferDetails to taler_crypto_lib.h as it is not exchange-specific 2016-06-09 21:03:07 +02:00
Christian Grothoff
ecf0689c75 Merge branch 'master' of git+ssh://taler.net/var/git/exchange 2016-06-09 19:18:30 +02:00
Christian Grothoff
75c04b8af2 rename /deposit/wtid and /wire/deposits to /track/{transaction,transfer} for improved consistency 2016-06-09 19:18:13 +02:00
Marcello Stanisci
d450303890 removing decref from wring place 2016-06-09 17:22:15 +02:00
Christian Grothoff
35f3c30717 exit aggregator if we failed to connect to DB 2016-06-09 15:39:54 +02:00
Christian Grothoff
421b4f403f integrate child_death_task with aggregator struct, and cancel it on error 2016-06-09 15:20:24 +02:00
Christian Grothoff
e1b2900ebe more verbose message to help diagnose issues 2016-06-09 14:54:50 +02:00
Christian Grothoff
c179734ccf make code build against revised GNUnet blind signing API 2016-06-09 14:52:00 +02:00
Christian Grothoff
3b9248e9c6 Merge branch 'master' of git+ssh://taler.net/var/git/exchange 2016-06-08 22:14:24 +02:00
Christian Grothoff
536163746e check currency on /admin/add/incoming (#4565) 2016-06-08 22:14: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
Christian Grothoff
a7379930d2 turn libfakebank into libtalerfakebank so we can use it for testcases in the merchant 2016-06-08 11:35:28 +02:00
Marcello Stanisci
7714356611 first steps in refreshing in benchmark 2016-06-07 17:41:16 +02:00
Marcello Stanisci
11703131a3 Merge branch 'master' of ssh://taler.net/var/git/exchange 2016-06-07 17:12:39 +02:00
Marcello Stanisci
ca8e309877 adding find_pk() to benchmark 2016-06-07 16:58:55 +02:00
Christian Grothoff
166352e87e add exchange_pub to callbacks 2016-06-07 15:14:44 +02:00
Christian Grothoff
8d329a0256 merge 2016-06-06 23:55:31 +02:00
Christian Grothoff
7d281b63be fixing compiler warnings, indentation, etc. 2016-06-06 23:53:54 +02:00
Marcello Stanisci
8c120f30f4 fixing segfault when shutting down benchmark, but now it hangs.. 2016-06-06 22:40:33 +02:00
Marcello Stanisci
2f6c57f351 spending logic in benchmark 2016-06-06 16:53:42 +02:00
Christian Grothoff
0fef44159a improve error message to diagnose #4559 2016-06-05 22:03:09 +02:00
Marcello Stanisci
69756317cd freeing in shutdown 2016-06-04 01:48:20 +02:00
Marcello Stanisci
f1858fc1f4 withdrawing coins and picking the ones to spend according to a given probability (see macro SPEND_PROBABILITY), for benchmarking 2016-06-04 01:29:42 +02:00
Marcello Stanisci
4843a41fc4 generating (global) blinding key for benchmark 2016-06-03 19:39:04 +02:00
Marcello Stanisci
a1029430b3 fixing benchmark compilation 2016-06-03 14:18:42 +02:00
Marcello Stanisci
9259c2bc69 anti-segfault comments, cancelling pending operation when shutting down benchmark 2016-06-03 02:28:57 +02:00
Marcello Stanisci
ece2f5f389 creating reserves for benchmark 2016-06-03 01:23:16 +02:00
Christian Grothoff
16bdd871f4 remove useless check 2016-06-02 10:02:07 +02:00
Christian Grothoff
df9a1770de remove useless check 2016-06-02 10:01:09 +02:00
Christian Grothoff
7680ebcbe1 check fcntl() return value 2016-06-02 09:36:24 +02:00
Christian Grothoff
06fe1d34f3 adding missing unlock 2016-06-02 09:06:03 +02:00
Christian Grothoff
71d05c6c93 adding missing va_end 2016-06-02 09:04:46 +02:00
Christian Grothoff
90aa044e61 remove duplciate check 2016-06-02 09:02:50 +02:00
Christian Grothoff
b405b02875 remove unnecessary check 2016-06-02 08:59:18 +02:00
Christian Grothoff
026673bd37 fix 2016-05-31 20:35:50 +02:00
Christian Grothoff
07449ce578 Merge branch 'master' of git+ssh://taler.net/var/git/exchange 2016-05-31 18:59:19 +02:00
Christian Grothoff
bc7c9e686e implementing #3474 2016-05-31 18:58:59 +02:00
Christian Grothoff
c6d1fb3ceb del 2016-05-31 14:32:34 +02:00
Christian Grothoff
ce3d7c360b add support for /keys cache control (#4036) 2016-05-31 14:32:06 +02:00
Marcello Stanisci
c2c85d0004 Merge branch 'master' of ssh://taler.net/var/git/exchange
Conflicts:
	src/benchmark/taler-exchange-benchmark
2016-05-31 11:09:19 +02:00
Marcello Stanisci
bfd3ce29d1 untracking binary 2016-05-31 11:08:29 +02:00
Marcello Stanisci
9164edd590 linking benchmark using $(top_builddir) instead of -l in Makefile.am 2016-05-31 11:05:49 +02:00
Christian Grothoff
0cef479e00 extend test to cover GC 2016-05-31 10:39:11 +02:00
Christian Grothoff
eb1fdc105c implement GC logic (#3485) 2016-05-31 09:34:45 +02:00
Christian Grothoff
ba0146b878 add -g option to taler-exchange-dbinit 2016-05-31 09:16:09 +02:00
Christian Grothoff
94e1679955 adding a few more uniqueness constraints to DB 2016-05-31 09:13:03 +02:00
Marcello Stanisci
ef81e9db22 comments 2016-05-30 18:57:16 +02:00
Marcello Stanisci
66201bf917 invoking benchmark_run() after getting /keys from exchange. Still doesn't work with https 2016-05-30 18:45:57 +02:00
Marcello Stanisci
925097c86d adding --pool-size option to benchmark,
correcting comments
2016-05-30 17:16:01 +02:00
Marcello Stanisci
848c7f0e4f benchmark makefile 2016-05-30 15:08:12 +02:00
Christian Grothoff
e68d07fc25 making DB scheme nice 2016-05-27 15:34:24 +02:00
Christian Grothoff
5f6f524a52 a first step towards normalizing the DB a bit and not storing data redundantly 2016-05-27 14:39:04 +02:00
Christian Grothoff
172e8494b9 a first step towards normalizing the DB a bit and not storing data redundantly 2016-05-27 14:34:57 +02:00
Christian Grothoff
2f5e58f3c7 a first step towards normalizing the DB a bit and not storing data redundantly 2016-05-27 14:14:13 +02:00
Christian Grothoff
54504b7f37 a first step towards normalizing the DB a bit and not storing data redundantly 2016-05-27 14:04:29 +02:00
Christian Grothoff
0ccb420f4c rename to avoid ambiguity 2016-05-27 12:03:26 +02:00
Christian Grothoff
8b701a2c62 add ON DELETE CASCADE refs where applicable 2016-05-27 11:55:07 +02:00
Christian Grothoff
c0451f0982 fix #4533 for exchange (breaks interaction with bank for /admin/add/incoming) 2016-05-26 16:38:59 +02:00
Christian Grothoff
3f468773e7 change edate to wire_transfer_deadline/delay (#4521) 2016-05-26 15:23:46 +02:00
Christian Grothoff
951ce5ef32 fix #4537 2016-05-25 19:12:44 +02:00
Christian Grothoff
079ef7cb6f fixing #4520: be more aggressive at asserting when API is violated 2016-05-24 20:37:23 +02:00
Christian Grothoff
f471cfcec5 add a few more DB constraints 2016-05-24 20:32:05 +02:00
Christian Grothoff
32bb3b14bf fix #4483 2016-05-24 20:13:31 +02:00
Florian Dold
8c3ffbf2a3 allow access to raw /keys response 2016-05-24 02:28:15 +02:00
Christian Grothoff
8dfb3b87b4 testing refund, fixing bugs, refund test passes 2016-05-21 19:22:03 +02:00
Christian Grothoff
9160245167 make use of GNUNET_JSON_from_data_auto where possible 2016-05-21 18:36:12 +02:00
Christian Grothoff
93aaf1d172 extending interpreter to cover refund (but not used yet) 2016-05-20 17:15:50 +02:00
Christian Grothoff
e39beff272 fix init before use in new refund logic 2016-05-20 15:52:40 +02:00
Christian Grothoff
35509528bc enforce wire deadline >= refund_deadline in exchange 2016-05-20 15:39:24 +02:00
Christian Grothoff
43cfa77248 enforce wire deadline >= refund_deadline in API 2016-05-20 15:36:08 +02:00
Christian Grothoff
324003acc0 log cause for /admin/add/incoming failures 2016-05-20 14:25:02 +02:00
Christian Grothoff
9391ed529c export function to free commit coin data 2016-05-19 18:37:31 +02:00
Christian Grothoff
7d8a74adf1 allow env override 2016-05-19 18:26:06 +02:00
Christian Grothoff
14436d1241 finished implementing #4401 2016-05-19 17:47:27 +02:00
Christian Grothoff
8199c06882 more work on #4401, almost done 2016-05-19 17:31:15 +02:00
Christian Grothoff
9dab61c91a more work on #4401 2016-05-19 17:11:35 +02:00
Christian Grothoff
f2b20f3ad0 more work towards fixing #4401 2016-05-19 16:24:29 +02:00
Christian Grothoff
763c8ab512 rename GNUNET_CRYPTO_rsa_BlindingKey to GNUNET_CRYPTO_RsaBlindingKey following GNUnet API change 2016-05-19 15:11:05 +02:00
Christian Grothoff
a39e2f9e00 working on DB test, unfinished 2016-05-19 15:10:31 +02:00
Christian Grothoff
daff72b63f fix #4506: check that master key matches our master key when loading signing and denomination keys; also do not send master_pub with each signing key, that is not in the spec 2016-05-18 17:58:32 +02:00
Christian Grothoff
396f29ab9e warn properly if we failed to run taler-exchange-aggregator 2016-05-18 17:23:21 +02:00
Christian Grothoff
8ff8c7b8c7 fix table dropping logic to ensure testcases run in fresh environment 2016-05-18 17:19:32 +02:00
Christian Grothoff
e905e9e245 use GNUNET_new_array() 2016-05-16 17:13:00 +02:00
Christian Grothoff
edf4e5cdf7 not all are 2d 2016-05-16 12:01:20 +02:00
Christian Grothoff
60c7d0f312 Merge branch 'master' of git+ssh://taler.net/var/git/exchange 2016-05-16 11:56:10 +02:00
Christian Grothoff
c8b9370413 fixing #3814 by removing ability to melt multiple oldcoins at the same time 2016-05-16 11:55:47 +02:00
Marcello Stanisci
5d2b56c3c3 MASTER_KEY in section merchant-exchange-test used to point exchange's private key. Fixed 2016-05-11 01:56:34 +02:00
Marcello Stanisci
93175857c9 uncommenting PORT in config 2016-05-11 01:30:30 +02:00
Marcello Stanisci
17512aa538 merchant private key in config generator 2016-05-10 22:06:55 +02:00
Marcello Stanisci
be53397fb9 adding EDATE in merchant config generator 2016-05-10 19:38:38 +02:00
Marcello Stanisci
e10fc753df typo 2016-05-10 15:03:00 +02:00
Marcello Stanisci
9aa8fa0d70 typo: tears->years 2016-05-10 14:23:59 +02:00
Marcello Stanisci
4a65642805 typo 2016-05-10 13:51:18 +02:00
Marcello Stanisci
cfb0f5bdbc including config generator among installed files 2016-05-10 13:50:01 +02:00
Christian Grothoff
068dbf020b reorg testcase a bit 2016-05-08 16:07:17 +02:00
Christian Grothoff
ffb38f292e adding test for wire prepare data 2016-05-08 15:51:40 +02:00
Christian Grothoff
966242341a expand testcase to cover refund API, fix minor issues 2016-05-08 15:44:44 +02:00
Christian Grothoff
691c9a859f more work on test, noting what is left to do with bug number 2016-05-06 23:53:04 +02:00
Christian Grothoff
d55b2cd59d more work on test, noting what is left to do 2016-05-06 23:51:15 +02:00
Christian Grothoff
d6d0ddbe07 check if starting aggregator actually worked 2016-05-06 22:07:19 +02:00
Christian Grothoff
0292d9d68a fix shutdown issue in test 2016-05-06 22:03:07 +02:00
Christian Grothoff
ce1dcfe1ed add timeout logic to aggregator test 2016-05-06 22:01:02 +02:00
Christian Grothoff
95d338f6cc adding test for auditors API 2016-05-06 19:39:31 +02:00