fixed problem with close-to-median size transactions
Merge branch 'master' into GUI
fixed build