mirror of
				https://git.wownero.com/wownero/wownero.git
				synced 2024-08-15 01:03:23 +00:00 
			
		
		
		
	support old ass BPs
This commit is contained in:
		
							parent
							
								
									b602ab02ee
								
							
						
					
					
						commit
						f742aed6a3
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1577,7 +1577,7 @@ namespace rct {
 | 
			
		|||
        {
 | 
			
		||||
          CHECK_AND_ASSERT_MES(rvp, false, "rctSig pointer is NULL");
 | 
			
		||||
          const rctSig &rv = *rvp;
 | 
			
		||||
          CHECK_AND_ASSERT_MES(rv.type == RCTTypeSimple || rv.type == RCTTypeBulletproof || rv.type == RCTTypeBulletproof2 || rv.type == RCTTypeCLSAG || rv.type == RCTTypeBulletproofPlus,
 | 
			
		||||
          CHECK_AND_ASSERT_MES(rv.type == RCTTypeSimple || rv.type == RCTTypeBulletproof || rv.type == RCTTypeBulletproof2 || rv.type == RCTTypeSimpleBulletproof || rv.type == RCTTypeCLSAG || rv.type == RCTTypeBulletproofPlus,
 | 
			
		||||
              false, "verRctSemanticsSimple called on non simple rctSig");
 | 
			
		||||
          const bool bulletproof = is_rct_bulletproof(rv.type);
 | 
			
		||||
          const bool bulletproof_plus = is_rct_bulletproof_plus(rv.type);
 | 
			
		||||
| 
						 | 
				
			
			@ -1709,7 +1709,7 @@ namespace rct {
 | 
			
		|||
      {
 | 
			
		||||
        PERF_TIMER(verRctNonSemanticsSimple);
 | 
			
		||||
 | 
			
		||||
        CHECK_AND_ASSERT_MES(rv.type == RCTTypeSimple || rv.type == RCTTypeBulletproof || rv.type == RCTTypeBulletproof2 || rv.type == RCTTypeCLSAG || rv.type == RCTTypeBulletproofPlus,
 | 
			
		||||
        CHECK_AND_ASSERT_MES(rv.type == RCTTypeSimple || rv.type == RCTTypeBulletproof || rv.type == RCTTypeBulletproof2 || rv.type == RCTTypeSimpleBulletproof || rv.type == RCTTypeCLSAG || rv.type == RCTTypeBulletproofPlus,
 | 
			
		||||
            false, "verRctNonSemanticsSimple called on non simple rctSig");
 | 
			
		||||
        const bool bulletproof = is_rct_bulletproof(rv.type);
 | 
			
		||||
        const bool bulletproof_plus = is_rct_bulletproof_plus(rv.type);
 | 
			
		||||
| 
						 | 
				
			
			@ -1807,7 +1807,7 @@ namespace rct {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    xmr_amount decodeRctSimple(const rctSig & rv, const key & sk, unsigned int i, key &mask, hw::device &hwdev) {
 | 
			
		||||
        CHECK_AND_ASSERT_MES(rv.type == RCTTypeSimple || rv.type == RCTTypeBulletproof || rv.type == RCTTypeBulletproof2 || rv.type == RCTTypeCLSAG || rv.type == RCTTypeBulletproofPlus,
 | 
			
		||||
        CHECK_AND_ASSERT_MES(rv.type == RCTTypeSimple || rv.type == RCTTypeBulletproof || rv.type == RCTTypeBulletproof2 || rv.type == RCTTypeSimpleBulletproof || rv.type == RCTTypeCLSAG || rv.type == RCTTypeBulletproofPlus,
 | 
			
		||||
            false, "decodeRct called on non simple rctSig");
 | 
			
		||||
        CHECK_AND_ASSERT_THROW_MES(i < rv.ecdhInfo.size(), "Bad index");
 | 
			
		||||
        CHECK_AND_ASSERT_THROW_MES(rv.outPk.size() == rv.ecdhInfo.size(), "Mismatched sizes of rv.outPk and rv.ecdhInfo");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue