mirror of
https://github.com/wownero/wownero.git
synced 2026-11-15 04:43:53 +01:00
support old BP
This commit is contained in:
@@ -895,7 +895,7 @@ uint64_t estimate_tx_weight(bool use_rct, int n_inputs, int mixin, int n_outputs
|
||||
|
||||
uint8_t get_bulletproof_fork()
|
||||
{
|
||||
return 8;
|
||||
return 11;
|
||||
}
|
||||
|
||||
uint8_t get_clsag_fork()
|
||||
@@ -1774,11 +1774,13 @@ static uint64_t decodeRct(const rct::rctSig & rv, const crypto::key_derivation &
|
||||
switch (rv.type)
|
||||
{
|
||||
case rct::RCTTypeSimple:
|
||||
case rct::RCTTypeSimpleBulletproof:
|
||||
case rct::RCTTypeBulletproof:
|
||||
case rct::RCTTypeBulletproof2:
|
||||
case rct::RCTTypeCLSAG:
|
||||
return rct::decodeRctSimple(rv, rct::sk2rct(scalar1), i, mask, hwdev);
|
||||
case rct::RCTTypeFull:
|
||||
case rct::RCTTypeFullBulletproof:
|
||||
return rct::decodeRct(rv, rct::sk2rct(scalar1), i, mask, hwdev);
|
||||
default:
|
||||
LOG_ERROR("Unsupported rct type: " << rv.type);
|
||||
|
||||
Reference in New Issue
Block a user