summaryrefslogtreecommitdiff
path: root/ledger/apply/asset.go
diff options
context:
space:
mode:
Diffstat (limited to 'ledger/apply/asset.go')
-rw-r--r--ledger/apply/asset.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/ledger/apply/asset.go b/ledger/apply/asset.go
index 1fe3c6fac..0796cb8f7 100644
--- a/ledger/apply/asset.go
+++ b/ledger/apply/asset.go
@@ -100,6 +100,13 @@ func AssetConfig(cc transactions.AssetConfigTxnFields, header transactions.Heade
return err
}
+ // Record the index used. No separate config for activating
+ // storage in AD because inner transactions can't be turned on
+ // without this change.
+ if balances.ConsensusParams().MaxInnerTransactions > 0 {
+ ad.ConfigAsset = newidx
+ }
+
// Tell the cow what asset we created
err = balances.AllocateAsset(header.Sender, newidx, true)
if err != nil {